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