File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -246,12 +246,18 @@ file_systemd_timers=(
246246)
247247
248248export file_config=$NAME_LOWERCASE " .conf"
249+ # Since 1.2.0 the main config file has been renamed from $NAME_LOWERCASE_config to $NAME_LOWERCASE.conf
250+ # The old file is not needed anymore and must be removed
251+ if [ -f " $dir_config /" $NAME_LOWERCASE " _config" ]; then
252+ rm -f " $dir_config /" $NAME_LOWERCASE " _config"
253+ fi
254+
249255file_current_publication=$dir_config " /.current_publication"
250256
251257# Workaround that permit to download the stable release in case of first installation or installation from a version that didn't had the config file
252258# (If the config file doesn't exist, it cannot detect the publication where it's supposed to be written)
253259# Also:
254- # - create a temp config file permit to get new config file names in case of rename in new versions
260+ # - create a temp config file that permit to get new config file names in case of rename in new versions
255261# - "manually" declare the current publication in case of new config file has been renamed and the publication can't be detected
256262if [ ! -f " $dir_config /$file_config " ]; then
257263 if [ -f $file_current_publication ]; then
You can’t perform that action at this time.
0 commit comments