Skip to content

Commit

Permalink
fix: Set KEEPUP_JSON_PATH correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed May 28, 2024
1 parent 27c2773 commit 9ecb95f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions scripts/dev/keepup
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

keepupDir=$HOME/keepupDir
keepupDownloadsDir=$keepupDir/downloads
keepupOverridesFile=$keepupDir/overrides.conf
#keepupOverridesFile=$keepupDir/overrides.conf
pluginsDir=$HOME/plugins
configSource=/server-config/
pluginVersionsFile=/server-config/keepup/plugins.conf
Expand All @@ -13,10 +13,23 @@ mkdir -p "$keepupDownloadsDir"
mkdir -p "$pluginsDir"

if [ "$KEEPUP" = "true" ]; then
# if [ ! -f "$keepupOverridesFile" ]; then
# echo "Creating default keepup overrides file"
# touch "$keepupOverridesFile"
# fi

if [ ! -f "$pluginVersionsFile" ]; then
echo "Plugin versions file not found at $pluginVersionsFile, skipping keepup"
return
fi

if [ -z "$KEEPUP_JSON_PATH" ]; then
export KEEPUP_JSON_PATH=mineinabyss.servers.${SERVER_NAME}
fi

echo "Keepup enabled"
keepup plugins $pluginVersionsFile $keepupDownloadsDir $pluginsDir --hide-progress-bar \
config --source $configSource --dest $HOME --inventory $keepupDir/keepup-configs.yml --template-cache $keepupDir/templates survival
# fi
else
echo "KEEPUP is not set to 'true', not running keepup"
fi

0 comments on commit 9ecb95f

Please sign in to comment.