1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fider_ynh.git synced 2024-09-03 18:36:11 +02:00
This commit is contained in:
Éric Gaspar 2024-05-14 08:44:03 +02:00 committed by Salamandar
parent b0874022df
commit 6920ff5ef5
3 changed files with 4 additions and 15 deletions

View file

@ -35,6 +35,7 @@ build_fider() {
cp -R favicon.png dist robots.txt ssr.js "$install_dir/app" cp -R favicon.png dist robots.txt ssr.js "$install_dir/app"
popd || ynh_die popd || ynh_die
chown "$app:www-data" -R "$install_dir/app" chown "$app:www-data" -R "$install_dir/app"
ynh_remove_go
} }
#================================================= #=================================================

View file

@ -34,8 +34,6 @@ ynh_remove_nginx_config
ynh_remove_nodejs ynh_remove_nodejs
ynh_remove_go
# Remove the log files # Remove the log files
ynh_secure_remove --file="/var/log/$app" ynh_secure_remove --file="/var/log/$app"

View file

@ -9,12 +9,6 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS
#================================================= #=================================================
@ -43,14 +37,10 @@ fi
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
ynh_script_progression --message="Upgrading source files..." --weight=1
if [ "$upgrade_type" == "UPGRADE_APP" ] # Download, check integrity, uncompress and patch the source from app.src
then ynh_setup_source --dest_dir="$install_dir"
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
fi
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"