From ca67122d5a462bc33549173a771aba3f85039171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 11 Nov 2023 18:26:33 +0100 Subject: [PATCH] fix --- manifest.toml | 1 - scripts/install | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index 4eacbe6..27675af 100644 --- a/manifest.toml +++ b/manifest.toml @@ -51,7 +51,6 @@ ram.runtime = "50M" allow_email = true [resources.install_dir] - dir = "/home/borgwarehouse" [resources.permissions] main.url = "/" diff --git a/scripts/install b/scripts/install index bbf642d..789f426 100755 --- a/scripts/install +++ b/scripts/install @@ -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/* #=================================================