several improvement and armonisation in filefct.sh, module auth and patch_snmp improved
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# Mount points are hardcoded and should bet set differently
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_conf_ceph="0.0.3"
|
||||
export VER_conf_ceph="0.0.4"
|
||||
export DEP_conf_ceph="upgrade_dist"
|
||||
|
||||
conf_ceph()
|
||||
@@ -34,8 +34,8 @@ conf_ceph()
|
||||
# hosts files required for Ceph bootstrap when DNS not yet started
|
||||
if [[ ! $(grep "# Ceph" /etc/hosts) ]]; then
|
||||
prnt I "Adding server list to /etc/hosts"
|
||||
backupdist /etc/hosts
|
||||
tagfile /etc/hosts
|
||||
backup_dist /etc/hosts
|
||||
tag_file /etc/hosts
|
||||
echo >> /etc/hosts
|
||||
echo "# Ceph servers:" >> /etc/hosts
|
||||
for srv in $CEPH_SRV_NAMES; do
|
||||
@@ -47,7 +47,7 @@ conf_ceph()
|
||||
prnt W "Ceph servers already in /etc/hosts, nothing to do"
|
||||
fi
|
||||
|
||||
backupdist /etc/fstab
|
||||
backup_dist /etc/fstab
|
||||
prnt I "Adding ceph entries to /etc/fstab"
|
||||
fstabchanged=true
|
||||
echo >> /etc/fstab
|
||||
@@ -63,7 +63,7 @@ conf_ceph()
|
||||
elif [[ $CEPH_STATUS == smb ]]; then
|
||||
pkginst smbclient
|
||||
|
||||
backupdist /etc/fstab
|
||||
backup_dist /etc/fstab
|
||||
prnt I "Adding Samba entries to /etc/fstab"
|
||||
fstabchanged=true
|
||||
echo >> /etc/fstab
|
||||
@@ -90,7 +90,7 @@ conf_ceph()
|
||||
fi
|
||||
|
||||
if [[ $fstabchanged == true ]]; then
|
||||
tagfile /etc/fstab
|
||||
tag_file /etc/fstab
|
||||
fi
|
||||
unset fstabchanged
|
||||
|
||||
|
||||
Reference in New Issue
Block a user