This repository has been archived on 2024-01-11. You can view files and clone it, but cannot push or open issues or pull requests.
site/scripts/shoot.fish

11 lines
360 B
Fish
Executable File

#!/usr/bin/fish
# tip! use a systemd timer or cronjob on this one
for user in /home/*/public_html
set user (string replace "/home/" "" $user)
set user (string replace "/public_html" "" $user)
echo shooting $user
SITE_DIR=. wget "https://screens.southlondon.cc/https%3A%2F%2Fsouthlondon.cc%2F~$user%2F" -O $SITE_DIR/static/shots/$user.png
end