1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garage_ynh.git synced 2024-09-03 18:36:32 +02:00

Fix source setup

This commit is contained in:
Alexandre Aubin 2023-12-15 21:05:04 +01:00
parent d23d326476
commit 8cb8872582
2 changed files with 5 additions and 3 deletions

View file

@ -38,11 +38,11 @@ ynh_app_setting_set --app=$app --key=bootstrap_peers --value=$bootstrap_peers
ynh_script_progression --message="Setting up source files..." --weight=1 ynh_script_progression --message="Setting up source files..." --weight=1
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
mv $install_dir/main $install_dir/garage
chmod 750 $install_dir chmod 750 $install_dir
chmod +x $install_dir/garage
# FIXME: Tmp debug chown -R $app:$app "$install_dir"
ynh_print_info --message="$(ls -l $install_dir)"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION

View file

@ -32,9 +32,11 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
mv $install_dir/main $install_dir/garage
fi fi
chmod 750 $install_dir chmod 750 $install_dir
chmod +x $install_dir/garage
chown -R $app:$app "$install_dir" chown -R $app:$app "$install_dir"
#================================================= #=================================================