1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

Fixed psql in upgrade restore and backup

This commit is contained in:
anmol 2018-11-10 00:40:26 +05:30
parent 5de2e29170
commit ab8c3c7802

View file

@ -10,6 +10,7 @@ source _common.sh
source /usr/share/yunohost/helpers
source ../settings/scripts/psql.sh
#=================================================
# LOAD SETTINGS
#=================================================
@ -99,11 +100,10 @@ ynh_install_app_dependencies gettext postgresql postgresql-contrib libpq-dev git
( cd $final_path/$app && git pull )
# Give permisiion to the final_path
chown -R "$app":"$app" "$final_path"
export PATH="$PATH:/var/www/$app/.cargo/bin:/var/$app/.local/bin:/usr/local/sbin"
export FEATURES=postgres
( cd $final_path/$app && sudo -u "$app" cargo install --force )
( cd $final_path/$app && sudo -u "$app" cargo install --path plume-cli --force )
( cd $final_path/$app && diesel migration run )
( cd $final_path/$app && diesel migration run )
# Recalculate and store the config file checksum into the app settings