1
0
Fork 0
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:
gougeon-s 2020-05-31 23:38:48 +02:00 committed by GitHub
parent 38ca48d154
commit d41c46910a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,10 @@ ynh_store_file_checksum "$final_path/config.yml"
# Set permissions to app files
chown -R root: $final_path
mkdir $final_path/data
chown -R root:$app $final_path/*
chmod -R 550 $final_path/*
chown $app $final_path/data
chmod 770 $final_path/data
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
@ -164,3 +167,4 @@ systemctl reload nginx
systemctl start $app
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)"