From b93a9b9617ff21d23e91eb95cc2de7ed266c4fc1 Mon Sep 17 00:00:00 2001 From: inrepublica Date: Wed, 25 May 2016 21:55:21 +0200 Subject: [PATCH] error correction --- manifest.json | 2 +- scripts/install | 4 ++-- scripts/remove | 6 ------ 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/manifest.json b/manifest.json index 2040153..c85ceb2 100644 --- a/manifest.json +++ b/manifest.json @@ -18,7 +18,7 @@ "multi_instance": "false", "services": [ "nginx", - "php5-fpm", + "php5-fpm" ], "arguments": { "install" : [ diff --git a/scripts/install b/scripts/install index 98d5708..de2ce22 100644 --- a/scripts/install +++ b/scripts/install @@ -27,10 +27,10 @@ if [[ ! $? -eq 0 ]]; then exit 1 fi -# Copy files to the right place +# Copy source files final_path=/var/www/$app sudo mkdir -p $final_path -sudo cp -a ../sources/* $final_path +sudo cp -a ../sources/. $final_path # Create configuration file cp $final_path/phpsysinfo.ini.new $final_path/phpsysinfo.ini diff --git a/scripts/remove b/scripts/remove index 0e0402e..7061749 100644 --- a/scripts/remove +++ b/scripts/remove @@ -21,11 +21,5 @@ sudo rm -rf /var/www/$app # Remove configuration files sudo rm -f /etc/nginx/conf.d/$domain.d/phpsysinfo.conf -# If app is public, delete url to SSOWat -if [[ $is_public -eq 1 ]]; -then - ynh_app_setting_delete "$app" skipped_uris -fi - # Restart services sudo service nginx reload \ No newline at end of file