1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00

Update install

This commit is contained in:
ericgaspar 2021-09-05 23:55:01 +02:00
parent 7e9f84debb
commit 47f7b38232
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -101,15 +101,11 @@ chown -R $app:www-data "$final_path"
# CREATE DATA AND GROUPS FOLDER
#=================================================
# Define app's data directory
data="$final_path/data"
# Create data folder
mkdir -p "$data"
# # Define app's groups directory
# groups="$final_path/groups"
# # Create groups folder
# mkdir -p "$groups"
mkdir -p "$final_path/data"
echo '$admin:$password' > "$final_path/data/passwd"
#chmod 400 "$final_path/data/passwd"
#chown $app: "$final_path/data/passwd"
#=================================================
# NGINX CONFIGURATION
@ -147,11 +143,7 @@ ynh_add_systemd_config
# MODIFY A CONFIG FILE
#=================================================
#echo "${admin}:${password}" >> $final_path/data/passwd
ynh_add_config --template="../conf/passwd" --destination="$final_path/data/passwd"
chmod 400 "$final_path/data/passwd"
chown $app: "$final_path/data/passwd"
#ynh_add_config --template="../conf/passwd" --destination="$final_path/data/passwd"
ynh_add_config --template="../conf/groupname.json" --destination="$datadir/groups/$group_name.json"
#=================================================