mirror of
https://github.com/YunoHost-Apps/galene_ynh.git
synced 2024-09-03 18:36:31 +02:00
Update upgrade
This commit is contained in:
parent
fae09f9979
commit
41a3da19ea
1 changed files with 5 additions and 4 deletions
|
@ -51,6 +51,7 @@ ynh_setup_source --dest_dir="$install_dir/build" --full_replace=1
|
|||
ynh_setup_source --dest_dir="$install_dir/build_ldap" --source_id="ldap" --full_replace=1
|
||||
|
||||
mkdir -p "$install_dir/data"
|
||||
mkdir -p "$install_dir/live"
|
||||
mkdir -p "$install_dir/live_ldap/data"
|
||||
|
||||
ynh_secure_remove --file="$install_dir/live/static/"
|
||||
|
@ -95,10 +96,10 @@ chmod +x "$install_dir/galene-password-generator"
|
|||
ynh_script_progression --message="Updating a configuration file..." --weight=2
|
||||
|
||||
# If password_hash doesn't exist, create it
|
||||
if [ -z "${password_hash:-}" ]; then
|
||||
password_hash=$(echo $($install_dir/galene-password-generator $password))
|
||||
ynh_app_setting_set --app=$app --key=password_hash --value="$password_hash"
|
||||
fi
|
||||
#if [ -z "${password_hash:-}" ]; then
|
||||
# password_hash=$(echo $($install_dir/galene-password-generator $password))
|
||||
# ynh_app_setting_set --app=$app --key=password_hash --value="$password_hash"
|
||||
#fi
|
||||
# Configure Galène
|
||||
# ynh_add_config --template="config.json" --destination="$install_dir/data/config.json"
|
||||
# chmod 400 "$install_dir/data/config.json"
|
||||
|
|
Loading…
Add table
Reference in a new issue