diff options
author | Frank Siegert | 2015-06-19 00:39:54 +0200 |
---|---|---|
committer | Frank Siegert | 2015-06-19 00:39:54 +0200 |
commit | 9479f5150f8e2cc6c7084cd316aafb1203778822 (patch) | |
tree | 833af35e37018fab1bc4ee5a55d82ddcdf84159c /cvmfs.install | |
download | aur-9479f5150f8e2cc6c7084cd316aafb1203778822.tar.gz |
Initial import
Diffstat (limited to 'cvmfs.install')
-rw-r--r-- | cvmfs.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cvmfs.install b/cvmfs.install new file mode 100644 index 000000000000..ff29adc988e7 --- /dev/null +++ b/cvmfs.install @@ -0,0 +1,17 @@ +# arg 1: the new package version +post_install() { + cvmfs_config setup + systemctl restart autofs + echo " - modify /etc/cvmfs/default.local according to your needs, cf. the Technical Report at http://cernvm.cern.ch/portal/sites/cernvm.cern.ch/files/cvmfstech-2.1-5.pdf" + echo " - (re)start autofs (and enable it if you want persistency):" + echo " sudo systemctl restart autofs" +} + +# arg 1: the old package version +post_remove() { + sed -i '/cvmfs/d' /etc/autofs/auto.master + systemctl restart autofs + sed -i '/added by CernVM-FS/d' /etc/fuse.conf + userdel cvmfs + rm -rf /var/lib/cvmfs /cvmfs +} |