Browse Source

nosudo -> nosv

Also make nowarps actually work.
master
Hristos N. Triantafillou 12 months ago
parent
commit
f6aa0fa020
Signed by: hristoast GPG Key ID: 5FC7664AD47AA1C5
  1. 16
      reset-quests.sh

16
reset-quests.sh

@ -3,12 +3,16 @@
this_dir=$(realpath $(dirname ${0}))
tes3mp_dir=${this_dir}/..
if ! [ "${1}" = '--nosudo' ]; then
nosudo=true
if ! [ "${1}" = '--nosv' ]; then
nosv=true
fi
if [ -z $nosudo ]; then
sudo sv stop tes3mp
if ! [ "${1}" = '--nowarps' ]; then
nowarps=true
fi
if [ -z $nosv ]; then
sv stop tes3mp
fi
cat <<EOF > ${tes3mp_dir}/lua/CoreScripts/data/world/world.json
@ -30,8 +34,8 @@ if ! [ -z $nowarps ]; then
${this_dir}/update-world-warps.py ${tes3mp_dir}/lua/CoreScripts/data/world/world.json
fi
if [ -z $nosudo ]; then
sudo sv start tes3mp
if [ -z $nosv ]; then
sv start tes3mp
fi
echo $(date +%F)-$(date +%T) QUEST RESET DONE!
Loading…
Cancel
Save