This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ls -R /var/lib/ceph/osd/ceph-4 -l | |
/var/lib/ceph/osd/ceph-4: | |
total 40 | |
lrwxrwxrwx. 1 ceph ceph 25 Aug 24 12:39 block -> /dev/vg_centos/ceph-osd | |
-rw-r--r--. 1 ceph ceph 2 Aug 24 12:39 bluefs | |
-rw-r--r--. 1 ceph ceph 37 Aug 24 12:39 ceph_fsid | |
-rw-r--r--. 1 ceph ceph 37 Aug 24 12:39 fsid | |
-rw-------. 1 ceph ceph 56 Aug 24 12:39 keyring | |
-rw-r--r--. 1 ceph ceph 8 Aug 24 12:39 kv_backend | |
-rw-r--r--. 1 ceph ceph 21 Aug 24 12:39 magic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
local_repo="$(awk '/^local-repo:/ {print $2; exit}' ~/.cabal/config)" | |
package_ver="$(cabal info . |head -n 1 |cut -f2 -d\ )" | |
package="${package_ver/%-[0-9.]*/}" | |
version="${package_ver##*-}" | |