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:
parent
7e9f84debb
commit
47f7b38232
1 changed files with 5 additions and 13 deletions
|
@ -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"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue