mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Update upgrade
This commit is contained in:
parent
10dc1325dc
commit
69170fad2d
1 changed files with 1 additions and 16 deletions
|
@ -160,22 +160,7 @@ chown $app:$app $final_path/lufi.conf
|
|||
ynh_script_progression --message="Building Lufi..."
|
||||
|
||||
pushd $final_path
|
||||
# Migrate from SQLite to PostgreSQL
|
||||
if [ $need_migration_from_sqlite_to_psql -eq 1 ]; then
|
||||
# Preinstall with sqlite
|
||||
carton install --deployment --without=mysql --without=htpasswd --without=test
|
||||
|
||||
# if /var/log/$app/production.log is a symbolic link, then move it to $final_path/log/production.log
|
||||
if [ ! -L "/var/log/$app/production.log" ]
|
||||
then
|
||||
mv "/var/log/$app/production.log" "$final_path/log/production.log"
|
||||
chown -R $app: "$final_path/log/production.log"
|
||||
fi
|
||||
|
||||
carton exec script/lufi sqliteToOtherDB
|
||||
fi
|
||||
|
||||
carton install --deployment --without=sqlite --without=mysql --without=htpasswd --without=test
|
||||
carton install --deployment --without=sqlite --without=mysql --without=htpasswd --without=test
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue