mirror of
https://github.com/YunoHost-Apps/borgwarehouse_ynh.git
synced 2024-09-03 18:16:17 +02:00
Fixes
This commit is contained in:
parent
27ec1770c9
commit
1795a9e184
4 changed files with 10 additions and 3 deletions
|
@ -8,7 +8,7 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
Environment="__YNH_NODE_LOAD_PATH__"
|
Environment="__YNH_NODE_LOAD_PATH__"
|
||||||
WorkingDirectory=__INSTALL_DIR__/app
|
WorkingDirectory=/home/__APP__/app
|
||||||
Environment=PORT=__PORT__
|
Environment=PORT=__PORT__
|
||||||
ExecStart=__YNH_NPM__ run start
|
ExecStart=__YNH_NPM__ run start
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
|
@ -21,7 +21,9 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
|
|
||||||
ynh_backup --src_path="$install_dir"
|
ynh_backup --src_path="$install_dir"
|
||||||
|
|
||||||
|
unlink "/home/$app/app"
|
||||||
unlink "/home/$app/repos"
|
unlink "/home/$app/repos"
|
||||||
|
|
||||||
ynh_backup --src_path="/home/$app"
|
ynh_backup --src_path="/home/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -38,14 +38,18 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
# Download, check integrity, uncompress and patch the source from manifest.toml
|
# Download, check integrity, uncompress and patch the source from manifest.toml
|
||||||
ynh_setup_source --dest_dir="$install_dir/app"
|
ynh_setup_source --dest_dir="$install_dir/app"
|
||||||
|
|
||||||
mkdir -p "/home/$app/.ssh" && chmod 700 "/home/$app/.ssh"
|
mkdir "/home/$app" && chmod 700 "/home/$app"
|
||||||
|
ln -s "$install_dir/app" "/home/$app/app"
|
||||||
|
chmod 700 "/home/$app/app/helpers/shells/*"
|
||||||
|
|
||||||
|
mkdir "/home/$app/.ssh" && chmod 700 "/home/$app/.ssh"
|
||||||
touch "/home/$app/.ssh/authorized_keys" && chmod 600 "/home/$app/.ssh/authorized_keys"
|
touch "/home/$app/.ssh/authorized_keys" && chmod 600 "/home/$app/.ssh/authorized_keys"
|
||||||
|
|
||||||
mkdir "/home/yunohost.app/$app" && chmod 700 "/home/yunohost.app/$app"
|
mkdir "/home/yunohost.app/$app" && chmod 700 "/home/yunohost.app/$app"
|
||||||
ln -s "/home/yunohost.app/$app" "/home/$app/repos" && chmod 700 "/home/$app/repos"
|
ln -s "/home/yunohost.app/$app" "/home/$app/repos" && chmod 700 "/home/$app/repos"
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
chown -R $app:www-data "/home/$app"
|
chown -R $app:www-data "/home/$app"
|
||||||
chmod 700 $install_dir/app/helpers/shells/*
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
|
|
|
@ -25,6 +25,7 @@ ynh_restore_file --origin_path="/home/yunohost.app/$app"
|
||||||
chown -R $app:www-data "/home/$app"
|
chown -R $app:www-data "/home/$app"
|
||||||
chown -R $app:www-data "/home/yunohost.app/$app" --not_mandatory
|
chown -R $app:www-data "/home/yunohost.app/$app" --not_mandatory
|
||||||
ln -s "/home/yunohost.app/$app" "/home/$app/repos" && chmod 700 "/home/$app/repos"
|
ln -s "/home/yunohost.app/$app" "/home/$app/repos" && chmod 700 "/home/$app/repos"
|
||||||
|
ln -s "$install_dir/app" "/home/$app/app" && chmod 700 "/home/$app/app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
|
|
Loading…
Reference in a new issue