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