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