Skip to content

Commit

Permalink
Fix update script
Browse files Browse the repository at this point in the history
  • Loading branch information
Toine authored and Toine committed Jun 21, 2024
1 parent 1a3c4d0 commit f997ad1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions bin/pypi_update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

BASE_DIR=/data/tier0
cd $BASE_DIR

echo "Removing old scripts"
sleep 1
rm $BASE_DIR/00_pypi_*.sh
sleep 1

declare -A PYPI_DEPLOYMENT_SCRIPTS=(
[00_pypi_start_agent.sh]=https://raw.githubusercontent.com/dmwm/T0/master/bin/00_pypi_start_agent.sh
[00_pypi_stop_agent.sh]=https://raw.githubusercontent.com/dmwm/T0/master/bin/00_pypi_stop_agent.sh
[00_pypi_reset_couch.sh]=https://raw.githubusercontent.com/dmwm/T0/master/bin/00_pypi_reset_couch.sh
[00_pypi_resource_control.sh]=https://raw.githubusercontent.com/dmwm/T0/master/bin/00_pypi_resource_control.sh
[00_pypi_patches.sh]=https://raw.githubusercontent.com/dmwm/T0/master/bin/00_pypi_patches.sh
[00_pypi_deploy_replay.sh]=https://raw.githubusercontent.com/dmwm/T0/master/bin/00_pypi_deploy_replay.sh
[00_pypi_deploy_prod.sh]=https://raw.githubusercontent.com/dmwm/T0/master/bin/00_pypi_deploy_prod.sh
)

for SCRIPT in "${!PYPI_DEPLOYMENT_SCRIPTS[@]}"; do
echo "Now updating $SCRIPT"
sleep 1
wget ${PYPI_DEPLOYMENT_SCRIPTS[$SCRIPT]} -O $BASE_DIR/$SCRIPT
chmod +x $BASE_DIR/$SCRIPT
done

0 comments on commit f997ad1

Please sign in to comment.