This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
self-hosting/backups/install.sh

15 lines
313 B
Bash
Raw Normal View History

2021-01-03 12:32:39 +01:00
#!/usr/bin/env sh
# Zip app
2021-01-03 12:43:48 +01:00
(cd app && zip -r ../app.zip * -x "__pycache__/*" "**/__pycache__/*" ".vim/*" "**/.vim/*")
2021-01-03 12:32:39 +01:00
# Add shebang to top of file
echo "#!/usr/bin/env python3" | cat - app.zip > backup_tool
chmod a+x backup_tool
# Move executable over
mv backup_tool /usr/local/bin
# Remove zip
rm app.zip