From 0463668181dbdb9bb4344c780e7b79b12f1e905a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Garrigue?= Date: Fri, 21 Aug 2015 14:34:13 +0000 Subject: [PATCH] Replaced service nginx by /etc/init.d/nginx to avoid /dev/tty error message --- scripts/install | 2 +- scripts/remove | 2 +- scripts/restore | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index b360158..9710a4d 100755 --- a/scripts/install +++ b/scripts/install @@ -60,7 +60,7 @@ then fi # Reload Nginx and regenerate SSOwat conf -sudo service nginx reload +sudo /etc/init.d/nginx reload sudo yunohost app ssowatconf # Setting first user details and filling database calling admin/install/index.php diff --git a/scripts/remove b/scripts/remove index 8b9c61a..74b000b 100755 --- a/scripts/remove +++ b/scripts/remove @@ -20,5 +20,5 @@ sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf mysql -u root -p$root_pwd -e "DROP DATABASE $app ; DROP USER $app@localhost ;" # Restart services -sudo service nginx reload +sudo /etc/init.d/nginx reload sudo yunohost app ssowatconf diff --git a/scripts/restore b/scripts/restore index c6bd15d..66ed6b3 100755 --- a/scripts/restore +++ b/scripts/restore @@ -21,4 +21,4 @@ domain=$(sudo yunohost app setting $app domain) sudo cp -a $backup_dir/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # Restart webserver -sudo service nginx reload +sudo /etc/init.d/nginx reload