1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

Fix upgrade logic for enigma

This commit is contained in:
Brian Douglass 2019-11-26 00:23:41 -05:00
parent 214e97f7a2
commit 4dca4a87c8
No known key found for this signature in database
GPG key ID: 985EB87AFF442C67

View file

@ -226,7 +226,11 @@ then
# Install Enigma plugin
if [ $with_enigma -eq 1 ]
then
cp -a "$final_path/plugins/enigma/config.inc.php.dist" "$final_path/plugins/enigma/config.inc.php" \
enigma_tmp_config="../conf/enigma.config.inc.php"
ynh_replace_string --match_string="__DIR__" --replace_string="$final_path/plugins/enigma/home" --target_file="$enigma_tmp_config"
cp "$enigma_tmp_config" "$final_path/plugins/enigma/config.inc.php" \
&& installed_plugins+=" 'enigma'," \
|| ynh_print_warn --message="Unable to install Enigma plugin"
fi