From 4aac3bbb826ebbbf6ebdb652328bb081b70ba0ea Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 7 Jul 2021 10:41:30 +0200 Subject: [PATCH] Fix --- scripts/install | 21 --------------------- scripts/restore | 4 ---- 2 files changed, 25 deletions(-) diff --git a/scripts/install b/scripts/install index 13e349f..e92b003 100644 --- a/scripts/install +++ b/scripts/install @@ -88,27 +88,6 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=2 ynh_add_fpm_config --package="$extra_php_dependencies" phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) -#================================================= -# SECURE FILES AND DIRECTORIES -#================================================= - -#cp ../conf/password.php $final_path/ynh_password.php -#cd $final_path -#hash=$(php ynh_password.php $password) -#rm ynh_password.php -#cd - - -# mail=$(ynh_user_get_info $admin mail) -# # if ! ynh_package_is_installed "sqlite3" ; then -# # ynh_package_install sqlite3 -# # echo "INSERT INTO config (name, val) VALUES ('calibre_dir', '$books_path');" | sqlite3 $final_path/data/data.db -# # echo "UPDATE user SET username = '$admin', password = '$hash', email='$mail' WHERE id = 1;" | sqlite3 $final_path/data/data.db -# # ynh_package_remove sqlite3 -# # else -# echo "INSERT INTO config (name, val) VALUES ('calibre_dir', '$books_path');" | sqlite3 $final_path/data/data.db -# echo "UPDATE user SET username = '$admin', password = '$hash', email='$mail' WHERE id = 1;" | sqlite3 $final_path/data/data.db -# # fi - #================================================= # CREATE DATA DIRECTORY #================================================= diff --git a/scripts/restore b/scripts/restore index 23ba668..538d9e0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -98,10 +98,6 @@ chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" -# # Restore sources & data -# src_path="/var/www/${app}" -# cp -a ./sources "$src_path" - books_path=/home/$admin/calibre_library cp -a ./data "$books_path"