2022-11-02 10:16:52 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
2023-08-25 22:32:20 +02:00
|
|
|
|
2023-02-24 14:01:24 +01:00
|
|
|
ntfy_setup_source() {
|
2023-09-04 22:31:24 +02:00
|
|
|
ynh_setup_source -d "$install_dir"
|
2023-02-24 14:01:24 +01:00
|
|
|
mkdir -p "$install_dir/data"
|
|
|
|
chown -R $app:$app "$install_dir"
|
|
|
|
chmod -R 750 "$install_dir/data"
|
|
|
|
|
|
|
|
ynh_secure_remove "$install_dir/client"
|
|
|
|
ynh_secure_remove "$install_dir/server"
|
|
|
|
}
|
2022-11-02 10:16:52 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|