From 01253a6110edda6e3b13c09ac309614076008bb6 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 11 May 2016 12:26:16 +0200 Subject: [PATCH] =?UTF-8?q?bug=201323=20:=20apr=C3=A8s=20avoir=20test?= =?UTF-8?q?=C3=A9=20avec=20succ=C3=A8s=20que=20la=20commande=20de=20d?= =?UTF-8?q?=C3=A9sactivation=20du=20mode=20furtif=20fonctionne=20bien=20su?= =?UTF-8?q?r=20simpa-macbook2=20(osx=2010.10),=20ajout=20de=20cette=20comm?= =?UTF-8?q?ande=20au=20script=20d'install=20de=20sauvegarde=20backuppc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install_backuppc_linux_mac.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/install_backuppc_linux_mac.sh b/install_backuppc_linux_mac.sh index 33f663c..b00669e 100755 --- a/install_backuppc_linux_mac.sh +++ b/install_backuppc_linux_mac.sh @@ -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