mirror of
https://github.com/YunoHost-Apps/borgwarehouse_ynh.git
synced 2024-09-03 18:16:17 +02:00
fix
This commit is contained in:
parent
4b98810d3b
commit
42c3692e8b
2 changed files with 6 additions and 4 deletions
|
@ -38,13 +38,13 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
|||
# Download, check integrity, uncompress and patch the source from manifest.toml
|
||||
ynh_setup_source --dest_dir="$install_dir/app"
|
||||
|
||||
mkdir /home/borgwarehouse
|
||||
mkdir /home/borgwarehouse/.ssh && chmod 700 /home/borgwarehouse/.ssh
|
||||
touch /home/borgwarehouse/.ssh/authorized_keys && chmod 600 /home/borgwarehouse/.ssh/authorized_keys
|
||||
mkdir /home/$app
|
||||
mkdir /home/$app/.ssh && chmod 700 /home/$app/.ssh
|
||||
touch /home/$app/.ssh/authorized_keys && chmod 600 /home/$app/.ssh/authorized_keys
|
||||
mkdir $install_dir/repos && chmod 700 $install_dir/repos
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
chown -R $app:www-data "/home/borgwarehouse"
|
||||
chown -R $app:www-data "/home/$app"
|
||||
chmod 700 $install_dir/app/helpers/shells/*
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -31,6 +31,8 @@ ynh_remove_nodejs
|
|||
|
||||
ynh_secure_remove --file="/etc/cron.d/$app"
|
||||
|
||||
ynh_secure_remove --file="/home/$app"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue