Skip to content

Commit 9cab9c6

Browse files
ggtrdggtrd
authored andcommitted
fix config file
1 parent 19d7b54 commit 9cab9c6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bashpack.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,18 @@ file_systemd_timers=(
246246
)
247247

248248
export 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+
249255
file_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
256262
if [ ! -f "$dir_config/$file_config" ]; then
257263
if [ -f $file_current_publication ]; then

0 commit comments

Comments
 (0)