1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borgwarehouse_ynh.git synced 2024-09-03 18:16:17 +02:00
This commit is contained in:
Éric Gaspar 2023-11-11 18:26:33 +01:00
parent 46eaff89d1
commit ca67122d5a
2 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,6 @@ ram.runtime = "50M"
allow_email = true
[resources.install_dir]
dir = "/home/borgwarehouse"
[resources.permissions]
main.url = "/"

View file

@ -38,11 +38,12 @@ 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 $install_dir/.ssh && chmod 700 $install_dir/.ssh
touch $install_dir/.ssh/authorized_keys && chmod 600 $install_dir/.ssh/authorized_keys
mkdir /home/borgwarehouse/.ssh && chmod 700 /home/borgwarehouse/.ssh
touch /home/borgwarehouse/.ssh/authorized_keys && chmod 600 /home/borgwarehouse/.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"
chmod 700 $install_dir/app/helpers/shells/*
#=================================================