From ab8c3c780224b3a9dbd54e0b43485b358325eae2 Mon Sep 17 00:00:00 2001 From: anmol Date: Sat, 10 Nov 2018 00:40:26 +0530 Subject: [PATCH] Fixed psql in upgrade restore and backup --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index a6327a5..2c8e2a4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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