mirror of
https://github.com/YunoHost-Apps/vaultwarden_ynh.git
synced 2024-09-03 18:26:31 +02:00
commit
864adf3934
4 changed files with 8 additions and 7 deletions
|
@ -136,9 +136,9 @@ popd
|
||||||
cp -a "$final_path"/build/target/release/. "$final_path"/live/.
|
cp -a "$final_path"/build/target/release/. "$final_path"/live/.
|
||||||
|
|
||||||
# Remove build files and rustup
|
# Remove build files and rustup
|
||||||
ynh_secure_remove --file="$final_path/build/"
|
ynh_secure_remove --file="$final_path/build"
|
||||||
ynh_secure_remove --file="$final_path/.cargo/"
|
ynh_secure_remove --file="$final_path/.cargo"
|
||||||
ynh_secure_remove --file="$final_path/.rustup/"
|
ynh_secure_remove --file="$final_path/.rustup"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
|
|
|
@ -88,7 +88,7 @@ ynh_remove_fail2ban_config
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Remove the log files
|
# Remove the log files
|
||||||
ynh_secure_remove --file="/var/log/$app/"
|
ynh_secure_remove --file="/var/log/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -106,6 +106,7 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_print_info --message="Restoring the systemd configuration..."
|
ynh_print_info --message="Restoring the systemd configuration..."
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
|
systemctl enable $app.service
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
|
|
|
@ -143,9 +143,9 @@ then
|
||||||
cp -a "$final_path"/build/target/release/. "$final_path"/live/.
|
cp -a "$final_path"/build/target/release/. "$final_path"/live/.
|
||||||
|
|
||||||
# Remove build files and rustup
|
# Remove build files and rustup
|
||||||
ynh_secure_remove --file="$final_path/build/"
|
ynh_secure_remove --file="$final_path/build"
|
||||||
ynh_secure_remove --file="$final_path/.cargo/"
|
ynh_secure_remove --file="$final_path/.cargo"
|
||||||
ynh_secure_remove --file="$final_path/.rustup/"
|
ynh_secure_remove --file="$final_path/.rustup"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue