diff --git a/scripts/upgrade b/scripts/upgrade index 635d147..f4a7511 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -125,7 +125,7 @@ rm -Rf "$final_path/addon" ynh_setup_source --dest_dir="$final_path/addon" --source_id="addons" # 3 - some extra folders -sudo chmod -R 775 $final_path/view/smarty3 +chmod -R 775 $final_path/view/smarty3 #================================================= @@ -174,7 +174,7 @@ ynh_store_file_checksum --file="$final_path/config/local.config.php" # Set up cron job ynh_replace_string --match_string="__YNH_WWW_PATH__" --replace_string="$final_path" --target_file="../conf/poller-cron" ynh_replace_string --match_string="__USER__" --replace_string="$app" --target_file="../conf/poller-cron" -ynh_restore_file --origin_path="../conf/poller-cron" --dest_path="/etc/cron.d/$app" +cp "../conf/poller-cron" "/etc/cron.d/$app" # Run composer (cd $final_path && sudo php bin/composer.phar install)