1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

Update Path to Cargo

This commit is contained in:
yalh76 2019-01-05 02:52:01 +01:00 committed by GitHub
parent f796e83fe3
commit f095810b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,10 +162,10 @@ chown -R $app: $final_path
PATH="$PATH:/var/www/$app/.cargo/bin"
export PATH="$PATH:/var/www/$app/.cargo/bin:/usr/local/sbin"
export FEATURES=postgres
( cd $final_path/$app && sudo -u "$app" -s cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0' )
( cd $final_path/$app && sudo -u "$app" /var/www/$app/.cargo/bin/cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0' )
( cd $final_path/$app && diesel migration run )
( cd $final_path/$app && sudo -u "$app" -s cargo install --no-default-features --features postgres )
( cd $final_path/$app && sudo -u "$app" -s cargo install --no-default-features --features postgres --path plume-cli )
( cd $final_path/$app && sudo -u "$app" /var/www/$app/.cargo/bin/cargo install --no-default-features --features postgres )
( cd $final_path/$app && sudo -u "$app" /var/www/$app/.cargo/bin/cargo install --no-default-features --features postgres --path plume-cli )
# Add new instance
if [ $registration -eq 1 ]