1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/BicBucStriim_ynh.git synced 2024-09-03 18:15:53 +02:00
This commit is contained in:
ericgaspar 2021-07-07 10:41:30 +02:00
parent 88f0b04101
commit 4aac3bbb82
2 changed files with 0 additions and 25 deletions

View file

@ -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
#=================================================

View file

@ -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"