1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00

sudo is not necessary, script run as root

This commit is contained in:
antoine 2019-12-07 18:37:18 +01:00
parent af31c9dbcd
commit 2c4c0b1248

View file

@ -140,7 +140,7 @@ ynh_replace_string "__dbpass__" "$db_pwd" "../conf/config.ini.php"
ynh_replace_string "__dbname__" "$db_name" "../conf/config.ini.php"
# Copy the config file to the final path
sudo cp ../conf/config.ini.php $final_path/data/.
cp ../conf/config.ini.php $final_path/data/.
# Load initial SQL into the new database
ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" < "../conf/sql/webtrees.sql"
@ -195,7 +195,7 @@ ynh_add_fpm_config
#=================================================
chown -R $app: $final_path
sudo chmod -R 700 $final_path/data
chmod -R 700 $final_path/data
#=================================================
# STORE THE CONFIG FILE CHECKSUM