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:
parent
5de2e29170
commit
ab8c3c7802
1 changed files with 3 additions and 3 deletions
|
@ -10,6 +10,7 @@ source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
source ../settings/scripts/psql.sh
|
source ../settings/scripts/psql.sh
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# LOAD SETTINGS
|
# LOAD SETTINGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -99,11 +100,10 @@ ynh_install_app_dependencies gettext postgresql postgresql-contrib libpq-dev git
|
||||||
( cd $final_path/$app && git pull )
|
( cd $final_path/$app && git pull )
|
||||||
# Give permisiion to the final_path
|
# Give permisiion to the final_path
|
||||||
chown -R "$app":"$app" "$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 --force )
|
||||||
( cd $final_path/$app && sudo -u "$app" cargo install --path plume-cli --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
|
# Recalculate and store the config file checksum into the app settings
|
||||||
|
|
Loading…
Add table
Reference in a new issue