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
|
@ -84,7 +84,7 @@ ynh_setup_source --dest_dir="$final_path"
|
||||||
# and copy in local.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 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"
|
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
|
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
|
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/www/squelettes /tmp/squelettes
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
|
@ -120,7 +120,7 @@ fi
|
||||||
# and copy in local.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 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"
|
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