bug 1323 : après avoir testé avec succès que la commande de désactivation du mode furtif fonctionne bien sur simpa-macbook2 (osx 10.10), ajout de cette commande au script d'install de sauvegarde backuppc
This commit is contained in:
parent
b7733bae9d
commit
01253a6110
|
@ -37,6 +37,22 @@ function allowUserToConnectToThisMachineUsingSsh()
|
|||
esac
|
||||
}
|
||||
|
||||
|
||||
function ensurePingIsAllowed()
|
||||
{
|
||||
case $(uname) in
|
||||
'Darwin')
|
||||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode off
|
||||
if [ $? != 0 ]; then
|
||||
printf '\e[1;31m%-6s\e[m' "La désactivation du mode furtif a échoué"; return "$ERROR"
|
||||
fi
|
||||
;;
|
||||
'Linux')
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
function ensureSshdIsRunning()
|
||||
{
|
||||
case $(uname) in
|
||||
|
@ -236,6 +252,9 @@ if [[ "${input_dir2}" != "" ]]; then
|
|||
else directories="'${dir1}'"
|
||||
fi
|
||||
|
||||
# backuppc server a besoin de ping-er les clients
|
||||
ensurePingIsAllowed
|
||||
|
||||
#### INSTALLATION DE OPENSSH-SERVER ####
|
||||
ensureSshdIsRunning
|
||||
if [ "$?" != "$SUCCESS" ]; then
|
||||
|
|
Loading…
Reference in New Issue