mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
delete sudo for bash commands
This commit is contained in:
parent
6273c8bb65
commit
7bf9371cc6
2 changed files with 6 additions and 6 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue