File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313# Check whether this installation is one with deprecated ruby configuration files.
1414# If so display a big warning that a manual update must be done for the configuration file of the bot.
1515function upgrade_to_yaml() {
16- if [ -f $HOME /src/bot1_conf.yml ] && [ -f " ${YAML_UPDATE_DONE} " ];
16+ if [ -f " $HOME /src/bot1_conf.yml" ] && [ -f " ${YAML_UPDATE_DONE} " ];
1717 then
1818 # Update was already done and new YAML config beside the old .rb config was created
19- # Nothing to do ...
20- echo -en " \n\n\nWARNING: REMOVE the old ruby style configuration file \" $HOME /src/bot1_conf.rb\" .\n\n"
21- echo -en " The updater won't run as long as this file was not removed.\n\n"
22- exit 15
19+ # Do not continue until the old rb configuration file was removed.
20+
21+ if [ -f " $HOME /src/bot1_conf.rb" ];
22+ then
23+ echo -en " \n\n\nWARNING: REMOVE the old ruby style configuration file \" $HOME /src/bot1_conf.rb\" .\n\n"
24+ echo -en " The updater won't run as long as this file was not removed.\n\n"
25+ exit 15
26+ fi
2327 else
2428 # Neither the new overwrite config bot1_conf.yml does exist nor the YAML_UPDAT_DONE file.
2529
You can’t perform that action at this time.
0 commit comments