From 4508d48f466a4f1aa9a1ec77deca56aad4d7d79f Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Tue, 28 Jun 2022 10:20:19 -0400 Subject: [PATCH] Fix upgrade from old path --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 73bc8ac..e0d0ad9 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -14,9 +14,9 @@ pkg_dependencies="acl nim libsass-dev" function build_nitter { pushd "$final_path" chown -R $app:$app $final_path - sudo -u $app env "PATH=/var/www/$app/nim-installation/bin:$(sudo -u $app sh -c 'echo $PATH')" nimble build -d:release -y -d:danger --passC:"-flto" --passL:"-flto" 2>&1 - sudo -u $app env "PATH=/var/www/$app/nim-installation/bin:$(sudo -u $app sh -c 'echo $PATH')" strip -s nitter 2>&1 - sudo -u $app env "PATH=/var/www/$app/nim-installation/bin:$(sudo -u $app sh -c 'echo $PATH')" nimble scss -y 2>&1 + sudo -u $app env "PATH=$final_path/nim-installation/bin:$(sudo -u $app sh -c 'echo $PATH')" nimble build -d:release -y -d:danger --passC:"-flto" --passL:"-flto" 2>&1 + sudo -u $app env "PATH=$final_path/nim-installation/bin:$(sudo -u $app sh -c 'echo $PATH')" strip -s nitter 2>&1 + sudo -u $app env "PATH=$final_path/nim-installation/bin:$(sudo -u $app sh -c 'echo $PATH')" nimble scss -y 2>&1 mkdir -p $final_path/tmp chown -R root:root $final_path popd