mirror of
https://github.com/YunoHost-Apps/gotify_ynh.git
synced 2024-09-03 20:36:26 +02:00
file perms (o-rx) + warn about plaintext passwd
The files, config file included, were world readable. The admin password is in plain text in the config file. It is used by gotify at the first session. It should be changed after the first login
This commit is contained in:
parent
38ca48d154
commit
d41c46910a
1 changed files with 5 additions and 1 deletions
|
@ -139,7 +139,10 @@ ynh_store_file_checksum "$final_path/config.yml"
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R root: $final_path
|
chown -R root: $final_path
|
||||||
mkdir $final_path/data
|
mkdir $final_path/data
|
||||||
|
chown -R root:$app $final_path/*
|
||||||
|
chmod -R 550 $final_path/*
|
||||||
chown $app $final_path/data
|
chown $app $final_path/data
|
||||||
|
chmod 770 $final_path/data
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
@ -164,3 +167,4 @@ systemctl reload nginx
|
||||||
|
|
||||||
systemctl start $app
|
systemctl start $app
|
||||||
ynh_script_progression --message="Installation of $app completed" --last
|
ynh_script_progression --message="Installation of $app completed" --last
|
||||||
|
ynh_print_warn "Change the admin password after the first login or delete it in the config file (stored in plain text)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue