1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vaultwarden_ynh.git synced 2024-09-03 18:26:31 +02:00

Fix rights

This commit is contained in:
yalh76 2021-04-11 20:32:45 +02:00
parent 81e072f426
commit 463fbc2f53
3 changed files with 4 additions and 7 deletions

View file

@ -100,7 +100,7 @@ ynh_setup_source --dest_dir="$final_path/live/web-vault/" --source_id="web"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# NGINX CONFIGURATION
@ -117,9 +117,6 @@ ynh_add_nginx_config "websocket_port rocket_port"
#=================================================
ynh_script_progression --message="Making install..."
# Set right permissions
chown -R "$app":"$app" "$final_path"
# Install rustup with the toolchain needed by bitwarden_rs
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'

View file

@ -67,7 +67,7 @@ ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# RESTORE FAIL2BAN CONFIGURATION

View file

@ -46,7 +46,7 @@ fi
if ! ynh_permission_exists --permission="admin"; then
# Create the required permissions
ynh_permission_create --permission="admin" --url="/admin" --allowed="$admin" --show_tile="false"
ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin --show_tile="false"
fi
# Create a permission if needed
@ -103,7 +103,7 @@ fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# NGINX CONFIGURATION