mirror of
https://github.com/YunoHost-Apps/BicBucStriim_ynh.git
synced 2024-09-03 18:15:53 +02:00
Fix
This commit is contained in:
parent
63df28b781
commit
f87ed8adff
4 changed files with 7 additions and 15 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
BIN
scripts/.DS_Store
vendored
Normal file
BIN
scripts/.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue