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 09:22:45 +02:00
parent 63df28b781
commit f87ed8adff
4 changed files with 7 additions and 15 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

BIN
scripts/.DS_Store vendored Normal file

Binary file not shown.

View file

@ -88,25 +88,11 @@ 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)
#=================================================
# SPECIFIC SETUP
#=================================================
# CONFIGURE BICBUCSTRIIM
#=================================================
books_path=/home/$admin/calibre_library
cp -r ../empty_library $books_path
# Disable BicBucStriim login if checked
if [[ $login -eq 1 ]]; then
sed -i -- 's/\[LOGIN_REQUIRED\] = 1/\[LOGIN_REQUIRED\] = 0/g' "$final_path"/index.php
fi
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
cp password.php $final_path/ynh_password.php
cp ../conf/password.php $final_path/ynh_password.php
cd $final_path
hash=$(php ynh_password.php $admin_pwd)
rm ynh_password.php
@ -131,12 +117,18 @@ datadir=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
mkdir -p $datadir
cp -r ../empty_library $baradir
chmod 750 "$datadir"
#chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir"
chmod -R ga+w "$datadir"
# Disable BicBucStriim login if checked
if [[ $login -eq 1 ]]; then
sed -i -- 's/\[LOGIN_REQUIRED\] = 1/\[LOGIN_REQUIRED\] = 0/g' $final_path/index.php
fi
#=================================================
# SETUP SSOWAT
#=================================================