mirror of
https://github.com/YunoHost-Apps/ntfy_ynh.git
synced 2024-09-03 19:46:27 +02:00
1fa0147e21
(cherry picked from commit 1a7fde7c120fea7872ec909141a7e7824dbff376) Signed-off-by: Alexander Wühr <awuehr@pnyhf.eu>
26 lines
786 B
Bash
26 lines
786 B
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# COMMON VARIABLES
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# PERSONAL HELPERS
|
|
#=================================================
|
|
ntfy_setup_source() {
|
|
ynh_setup_source -d "$install_dir" -s "$YNH_ARCH"
|
|
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"
|
|
}
|
|
|
|
#=================================================
|
|
# EXPERIMENTAL HELPERS
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# FUTURE OFFICIAL HELPERS
|
|
#=================================================
|