~mser/vmangos-docker

48065c3cb48745a5c517212abc7529946f876baa — Michael Serajnik a month ago 768aa1b
Fix repository path determination under macOS
M 00-create-database-backup.sh => 00-create-database-backup.sh +5 -2
@@ 16,8 16,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

script_path=$(readlink -f "$0")
repository_path=$(dirname "$script_path")
get_script_path() {
  [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

repository_path=$(dirname $(get_script_path "$0"))

cd "$repository_path"


M 00-create-or-reset-config-files.sh => 00-create-or-reset-config-files.sh +5 -2
@@ 16,8 16,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

script_path=$(readlink -f "$0")
repository_path=$(dirname "$script_path")
get_script_path() {
  [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

repository_path=$(dirname $(get_script_path "$0"))

rm -f "$repository_path/config/*.conf"
cp "$repository_path/config/mangosd.conf.example" \

M 00-extract-client-data.sh => 00-extract-client-data.sh +5 -2
@@ 28,8 28,11 @@ client_version=5875
# update
world_database_import_name=world_full_14_june_2021

script_path=$(readlink -f "$0")
repository_path=$(dirname "$script_path")
get_script_path() {
  [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

repository_path=$(dirname $(get_script_path "$0"))

cd "$repository_path"


M 00-install.sh => 00-install.sh +5 -2
@@ 28,8 28,11 @@ client_version=5875
# update
world_database_import_name=world_full_14_june_2021

script_path=$(readlink -f "$0")
repository_path=$(dirname "$script_path")
get_script_path() {
  [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

repository_path=$(dirname $(get_script_path "$0"))

cd "$repository_path"


M 00-start.sh => 00-start.sh +5 -2
@@ 16,8 16,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

script_path=$(readlink -f "$0")
repository_path=$(dirname "$script_path")
get_script_path() {
  [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

repository_path=$(dirname $(get_script_path "$0"))

cd "$repository_path"


M 00-stop.sh => 00-stop.sh +5 -2
@@ 16,8 16,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

script_path=$(readlink -f "$0")
repository_path=$(dirname "$script_path")
get_script_path() {
  [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

repository_path=$(dirname $(get_script_path "$0"))

cd "$repository_path"


M 00-update-including-world-database-import.sh => 00-update-including-world-database-import.sh +5 -2
@@ 28,8 28,11 @@ client_version=5875
# update
world_database_import_name=world_full_14_june_2021

script_path=$(readlink -f "$0")
repository_path=$(dirname "$script_path")
get_script_path() {
  [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

repository_path=$(dirname $(get_script_path "$0"))

cd "$repository_path"


M 00-update.sh => 00-update.sh +5 -2
@@ 28,8 28,11 @@ client_version=5875
# update
world_database_import_name=world_full_14_june_2021

script_path=$(readlink -f "$0")
repository_path=$(dirname "$script_path")
get_script_path() {
  [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}

repository_path=$(dirname $(get_script_path "$0"))

cd "$repository_path"