From 2c4c0b124806d5513f2e3c951ac4513f49d6ba0c Mon Sep 17 00:00:00 2001 From: antoine Date: Sat, 7 Dec 2019 18:37:18 +0100 Subject: [PATCH] sudo is not necessary, script run as root --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 380364b..2eb3d59 100755 --- a/scripts/install +++ b/scripts/install @@ -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