1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ntfy_ynh.git synced 2024-09-03 19:46:27 +02:00
ntfy_ynh/scripts/_common.sh
Alexander Wühr be102343e1
Enable auto updates (#27)
* Switch to manifest src handling (#26)
* Update pkg to 2.7.0~ynh2
* Auto-update README

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
2023-10-12 11:11:27 +02:00

27 lines
772 B
Bash

#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
#=================================================
# PERSONAL HELPERS
#=================================================
ntfy_setup_source() {
ynh_setup_source -d "$install_dir"
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
#=================================================