1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lstu_ynh.git synced 2024-09-03 19:36:12 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-06-21 18:15:01 +02:00
parent 2fb1d572e1
commit 47b7bd156c
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -136,7 +136,7 @@ then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/lstu.conf" ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/lstu.conf"
fi fi
chmod 750 "$final_path" chmod 750 "$final_path"
@ -167,6 +167,18 @@ pushd $final_path
carton install --deployment --without=sqlite --without=mysql carton install --deployment --without=sqlite --without=mysql
popd popd
#=================================================
# CONFIGURE LSTU
#=================================================
ynh_script_progression --message="Configuring Lstu..."
if [ $is_public -eq 0 ];
then
ynh_add_config --template="../conf/lstu.conf.ldap" --destination="$final_path/lstu.conf"
else
ynh_add_config --template="../conf/lstu.conf.template" --destination="$final_path/lstu.conf"
fi
#================================================= #=================================================
# SETUP LOGROTATE # SETUP LOGROTATE
#================================================= #=================================================