Browse Source

regression(update): add migration for pmc update

pull/4185/head
H3o66 3 years ago
parent
commit
130b62f141
  1. 14
      lgsm/modules/update_papermc.sh

14
lgsm/modules/update_papermc.sh

@ -181,6 +181,20 @@ elif [ "${shortname}" == "wmc" ]; then
paperproject="waterfall"
fi
# migration from old build file to new in the install dir
oldbuildfile="${datadir}/${paperproject}-version"
if [ -f "${oldbuildfile}" ]; then
if [ -f "${serverfiles}/build.txt" ]; then
fn_print_info_nl "Remove old build version file"
fn_script_log_info "Remove old build version file"
rm -f "${oldbuildfile}"
else
fn_print_info_nl "Move old build file to new place"
fn_script_log_info "Move old build file to new place"
mv -f -v "${oldbuildfile}" "${serverfiles}/build.txt"
fi
fi
if [ "${firstcommandname}" == "INSTALL" ]; then
fn_update_remotebuild
fn_update_dl

Loading…
Cancel
Save