Skip to content

Commit

Permalink
Don't overwrite config files on start of containers
Browse files Browse the repository at this point in the history
  • Loading branch information
niclaslindstedt committed Aug 12, 2017
1 parent 31d96a9 commit ecc042e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions scripts/start_servers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,70 +89,70 @@ start_port() {

[ ! -L $installdir/ktx/demos ] && {
echo "* Creating demos folder"
cp -r $installdir/ktx/demos ~/.nquakesv/server/demos
[ ! -d ~/.nquakesv/server/demos ] && cp -r $installdir/ktx/demos ~/.nquakesv/server/demos
rm -rf $installdir/ktx/demos
ln -s ~/.nquakesv/server/demos $installdir/ktx/demos
}

[ ! -L $installdir/qtv/qtv_template.cfg ] && {
echo "* Copying qtv.cfg to nquakesv configuration folder"
cp $installdir/qtv/qtv_template.cfg ~/.nquakesv/server/qtv.cfg
[ ! -f ~/.nquakesv/server/qtv.cfg ] && cp $installdir/qtv/qtv_template.cfg ~/.nquakesv/server/qtv.cfg
rm $installdir/qtv/qtv_template.cfg
ln -s ~/.nquakesv/server/qtv.cfg $installdir/qtv/qtv_template.cfg
}

[ ! -L $installdir/qwfwd/qwfwd_template.cfg ] && {
echo "* Copying qwfwd.cfg to nquakesv configuration folder"
cp $installdir/qwfwd/qwfwd_template.cfg ~/.nquakesv/server/qwfwd.cfg
[ ! -f ~/.nquakesv/server/qwfwd.cfg ] && cp $installdir/qwfwd/qwfwd_template.cfg ~/.nquakesv/server/qwfwd.cfg
rm $installdir/qwfwd/qwfwd_template.cfg
ln -s ~/.nquakesv/server/qwfwd.cfg $installdir/qwfwd/qwfwd_template.cfg
}

[ ! -L $installdir/ktx/port_template.cfg ] && {
echo "* Copying port.cfg to nquakesv configuration folder"
cp $installdir/ktx/port_template.cfg ~/.nquakesv/server/port.cfg
[ ! -f ~/.nquakesv/server/port.cfg ] && cp $installdir/ktx/port_template.cfg ~/.nquakesv/server/port.cfg
rm $installdir/ktx/port_template.cfg
ln -s ~/.nquakesv/server/port.cfg $installdir/ktx/port_template.cfg
}

[ ! -L $installdir/ktx/ktx.cfg ] && {
echo "* Copying ktx.cfg to nquakesv configuration folder"
cp $installdir/ktx/ktx.cfg ~/.nquakesv/server/ktx.cfg
[ ! -f ~/.nquakesv/server/ktx.cfg ] && cp $installdir/ktx/ktx.cfg ~/.nquakesv/server/ktx.cfg
rm $installdir/ktx/ktx.cfg
ln -s ~/.nquakesv/server/ktx.cfg $installdir/ktx/ktx.cfg
}

[ ! -L $installdir/ktx/mvdsv.cfg ] && {
echo "* Copying mvdsv.cfg to nquakesv configuration folder"
cp $installdir/ktx/mvdsv.cfg ~/.nquakesv/server/mvdsv.cfg
[ ! -f ~/.nquakesv/server/mvdsv.cfg ] && cp $installdir/ktx/mvdsv.cfg ~/.nquakesv/server/mvdsv.cfg
rm $installdir/ktx/mvdsv.cfg
ln -s ~/.nquakesv/server/mvdsv.cfg $installdir/ktx/mvdsv.cfg
}

[ ! -L $installdir/ktx/pwd.cfg ] && {
echo "* Copying passwords.cfg to nquakesv configuration folder"
cp $installdir/ktx/pwd.cfg ~/.nquakesv/server/passwords.cfg
[ ! -f ~/.nquakesv/server/passwords.cfg ] && cp $installdir/ktx/pwd.cfg ~/.nquakesv/server/passwords.cfg
rm $installdir/ktx/pwd.cfg
ln -s ~/.nquakesv/server/passwords.cfg $installdir/ktx/pwd.cfg
}

[ ! -L $installdir/ktx/matchless.cfg ] && {
echo "* Copying matchless.cfg to nquakesv configuration folder"
cp $installdir/ktx/matchless.cfg ~/.nquakesv/server/matchless.cfg
[ ! -f ~/.nquakesv/server/matchless.cfg ] && cp $installdir/ktx/matchless.cfg ~/.nquakesv/server/matchless.cfg
rm $installdir/ktx/matchless.cfg
ln -s ~/.nquakesv/server/matchless.cfg $installdir/ktx/matchless.cfg
}

[ ! -L $installdir/ktx/vip_ip.cfg ] && {
echo "* Copying vip_ip.cfg to nquakesv configuration folder"
cp $installdir/ktx/vip_ip.cfg ~/.nquakesv/server/vip_ip.cfg
[ ! -f ~/.nquakesv/server/vip_ip.cfg ] && cp $installdir/ktx/vip_ip.cfg ~/.nquakesv/server/vip_ip.cfg
rm $installdir/ktx/vip_ip.cfg
ln -s ~/.nquakesv/server/vip_ip.cfg $installdir/ktx/vip_ip.cfg
}

[ ! -L $installdir/ktx/ban_ip.cfg ] && {
echo "* Copying ban_ip.cfg to nquakesv configuration folder"
cp $installdir/ktx/ban_ip.cfg ~/.nquakesv/server/ban_ip.cfg
[ ! -f ~/.nquakesv/server/ban_ip.cfg ] && cp $installdir/ktx/ban_ip.cfg ~/.nquakesv/server/ban_ip.cfg
rm $installdir/ktx/ban_ip.cfg
ln -s ~/.nquakesv/server/ban_ip.cfg $installdir/ktx/ban_ip.cfg
}
Expand Down

0 comments on commit ecc042e

Please sign in to comment.