diff --git a/scripts/install b/scripts/install index d66ae60..75e6dda 100644 --- a/scripts/install +++ b/scripts/install @@ -80,11 +80,11 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_setup_source --dest_dir="$final_path" #================================================= -# Change options in file config.dist.php +# Change options in file config.dist.php # and copy in local.dist.php #================================================= -sudo cp -a $final_path/config.dist.php $final_path/config.local.php +cp -a $final_path/config.dist.php $final_path/config.local.php # ynh_replace_string --match_string="const ROOT = __DIR__;" --replace_string="const ROOT = /var/www/garradin/;" --target_file="$final_path/config.local.php" ynh_replace_string --match_string="const PREFER_HTTPS = false;" --replace_string="const PREFER_HTTPS = true;" --target_file="$final_path/config.local.php" diff --git a/scripts/upgrade b/scripts/upgrade index 0466feb..c413b6b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -55,8 +55,8 @@ fi #================================================= ynh_script_progression --message="Backing up the bdd and squelettes before upgrading (may take a while)..." --time --weight=1 -sudo cp -avr /var/www/garradin/association.sqlite /tmp/association.sqlite -sudo cp -avr /var/www/garradin/www/squelettes /tmp/squelettes +cp -avr /var/www/garradin/association.sqlite /tmp/association.sqlite +cp -avr /var/www/garradin/www/squelettes /tmp/squelettes #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP @@ -116,11 +116,11 @@ then fi #================================================= -# Change options in file config.dist.php +# Change options in file config.dist.php # and copy in local.dist.php #================================================= -sudo cp -a $final_path/config.dist.php $final_path/config.local.php +cp -a $final_path/config.dist.php $final_path/config.local.php # ynh_replace_string --match_string="const ROOT = __DIR__;" --replace_string="const ROOT = /var/www/garradin/;" --target_file="$final_path/config.local.php" ynh_replace_string --match_string="const PREFER_HTTPS = false;" --replace_string="const PREFER_HTTPS = true;" --target_file="$final_path/config.local.php"