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
b15a13f621
commit
5de2e29170
3 changed files with 6 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
source psql.sh
|
||||
source ../settings/scripts/psql.sh
|
||||
|
||||
#=================================================
|
||||
# MANAGE SCRIPT FAILURE
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
source psql.sh
|
||||
source ../settings/scripts/psql.sh
|
||||
|
||||
#=================================================
|
||||
# MANAGE SCRIPT FAILURE
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
source ../settings/scripts/psql.sh
|
||||
|
||||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
|
@ -98,9 +99,11 @@ 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 && sudo -u "$app" diesel migration run )
|
||||
( cd $final_path/$app && diesel migration run )
|
||||
|
||||
|
||||
# Recalculate and store the config file checksum into the app settings
|
||||
|
|
Loading…
Add table
Reference in a new issue