mirror of
https://github.com/YunoHost-Apps/question2answer_ynh.git
synced 2024-09-03 20:16:07 +02:00
[autopatch] TEST BEFORE MERGE ynh_setup_source --full_replace=1
This commit is contained in:
parent
ef3df38596
commit
e4c1e41ee8
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ ynh_script_progression --message="Upgrading source files..." --weight=1
|
|||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="qa-config.php"
|
||||
ynh_setup_source --source_id="ldap" --dest_dir="$install_dir/qa-plugin/qa-ldap-login"
|
||||
ynh_setup_source --source_id="ldap" --dest_dir="$install_dir/qa-plugin/qa-ldap-login" --full_replace=1
|
||||
|
||||
ynh_replace_string \
|
||||
--target_file="$install_dir/qa-include/pages/login.php" \
|
||||
|
@ -35,7 +35,7 @@ ynh_replace_string \
|
|||
--replace_string="require_once QA_INCLUDE_DIR . 'db/selects.php';\r\n require_once QA_INCLUDE_DIR . '../qa-plugin/qa-ldap-login/qa-ldap-process.php';"
|
||||
|
||||
if [ "$language" == "fr" ]; then
|
||||
ynh_setup_source --source_id="lang_fr" --dest_dir="$install_dir/qa-lang/fr"
|
||||
ynh_setup_source --source_id="lang_fr" --dest_dir="$install_dir/qa-lang/fr" --full_replace=1
|
||||
fi
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue