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/* #=================================================