mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-26 08:18:27 +00:00
Merge pull request #407 from klightspeed/1.5#defaultinstance
Make "main" instance default in new installs
This commit is contained in:
commit
acd936d41f
@ -69,4 +69,4 @@ mod_branch=Windows
|
|||||||
# example for config name "ark1":
|
# example for config name "ark1":
|
||||||
#configfile_ark1="/path/to/config/file"
|
#configfile_ark1="/path/to/config/file"
|
||||||
|
|
||||||
#defaultinstance="main"
|
defaultinstance="main"
|
||||||
|
|||||||
@ -189,6 +189,7 @@ if [ "$userinstall" == "yes" ]; then
|
|||||||
exit 2
|
exit 2
|
||||||
else
|
else
|
||||||
mv -n "${INSTALL_ROOT}${CONFIGFILE}.NEW" "${INSTALL_ROOT}${CONFIGFILE}"
|
mv -n "${INSTALL_ROOT}${CONFIGFILE}.NEW" "${INSTALL_ROOT}${CONFIGFILE}"
|
||||||
|
cp -n "${INSTALL_ROOT}/${INSTANCEDIR}/instance.cfg.example" "${INSTALL_ROOT}/${INSTANCEDIR}/main.cfg"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Copy arkmanager to /usr/bin and set permissions
|
# Copy arkmanager to /usr/bin and set permissions
|
||||||
@ -318,6 +319,7 @@ else
|
|||||||
exit 2
|
exit 2
|
||||||
else
|
else
|
||||||
mv -n "${INSTALL_ROOT}${CONFIGFILE}.NEW" "${INSTALL_ROOT}${CONFIGFILE}.cfg"
|
mv -n "${INSTALL_ROOT}${CONFIGFILE}.NEW" "${INSTALL_ROOT}${CONFIGFILE}.cfg"
|
||||||
|
cp -n "${INSTALL_ROOT}/${INSTANCEDIR}/instance.cfg.example" "${INSTALL_ROOT}/${INSTANCEDIR}/main.cfg"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user