1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mumble-web_ynh.git synced 2024-09-03 19:46:16 +02:00

Update install

This commit is contained in:
ericgaspar 2021-07-16 16:49:14 +02:00
parent c00ed93d80
commit 40a1ddf9ac
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -111,17 +111,18 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Configuring Mumble web client..." --weight=1
ynh_use_nodejs
(
cd $final_path
chown -R $app: $final_path
cargo build --release
ynh_exec_warn_less ynh_exec_as "$app" PATH="$nodejs_path:$PATH" "$nodejs_path/npm" install --save --loglevel warn
ynh_exec_warn_less ynh_exec_as "$app" PATH="$nodejs_path:$PATH" "$nodejs_path/npm" run build
ls -lah
)
# Install rustup with the toolchain needed by vaultwarden
pushd "$final_path"
sudo -u "$app" RUSTUP_HOME="$final_path"/.rustup CARGO_HOME="$final_path"/.cargo bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain nightly'
popd
export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin"
# Compile vaultwarden
pushd "$final_path"/build
ynh_exec_warn_less sudo -u "$app" env PATH="$PATH" cargo build --release
popd
#=================================================
# ADD A CONFIGURATION