mirror of
https://github.com/YunoHost-Apps/BicBucStriim_ynh.git
synced 2024-09-03 18:15:53 +02:00
Fix calibre library permissions
This commit is contained in:
parent
e3777a81dc
commit
ee9d1ded70
3 changed files with 8 additions and 2 deletions
|
@ -58,6 +58,7 @@ fi
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
sudo chown -R root: $src_path
|
sudo chown -R root: $src_path
|
||||||
sudo chmod -R ga+w $src_path/data
|
sudo chmod -R ga+w $src_path/data
|
||||||
|
sudo chown -R $admin "$books_path"
|
||||||
|
|
||||||
cp password.php $src_path/ynh_password.php
|
cp password.php $src_path/ynh_password.php
|
||||||
cd $src_path
|
cd $src_path
|
||||||
|
|
|
@ -8,13 +8,17 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
# Retrieve app settings
|
# Retrieve app settings
|
||||||
domain=$(ynh_app_setting_get "$app" domain)
|
domain=$(ynh_app_setting_get "$app" domain)
|
||||||
|
admin=$(ynh_app_setting_get "$app" admin)
|
||||||
|
books_path=/home/$admin/calibre_library
|
||||||
|
|
||||||
# Remove php5-sqlite dependency
|
# Remove php5-sqlite dependency
|
||||||
ynh_package_remove php5-sqlite
|
ynh_package_remove php5-sqlite
|
||||||
|
|
||||||
# Remove sources
|
# Remove sources
|
||||||
sudo rm -rf /var/www/$app
|
sudo rm -rf /var/www/$app
|
||||||
sudo rm -rf /var/www/${app}_library
|
|
||||||
|
# Remove calibre library
|
||||||
|
sudo rm -rf $books_path
|
||||||
|
|
||||||
# Remove nginx configuration file
|
# Remove nginx configuration file
|
||||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
|
@ -30,7 +30,8 @@ sudo cp -a ./data "$books_path"
|
||||||
|
|
||||||
# Restore permissions to app files
|
# Restore permissions to app files
|
||||||
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
||||||
sudo chown -R root: "$src_path" "${src_path}_library"
|
sudo chown -R root: "$src_path"
|
||||||
|
sudo chown -R $admin "$books_path"
|
||||||
|
|
||||||
### MySQL (remove if not used) ###
|
### MySQL (remove if not used) ###
|
||||||
# If a MySQL database is used:
|
# If a MySQL database is used:
|
||||||
|
|
Loading…
Add table
Reference in a new issue