shell scripts for administering linux machines
_as_env | ||
README.md | ||
s | ||
TODO.md | ||
update-apt | ||
update-caddy | ||
update-compose |
these are my shell scripts for making the command line a little easier bc typing is hard
environment variables used
name | description | default | |
---|---|---|---|
COMPOSE_STACKS |
path where dc will do its work |
/opt/compose |
|
CADDY_SITES |
path where the caddy configuration lives | ||
S_INIT |
manually override the init system s assumes |
scenarios
systemd, openrc, etc. etc.
s <service_name> <action>
- action can be one of: edit, logs, off, on, restart, start, status. stop
docker
- keep multiple separate docker compose files in their own dirs
- update them all with
update-compose
dc [stack] [command]
caddy
under construction
commands
dc*
shorthand adapter for docker compose
s
shorthand adapter for your init system
update-*
update, upgrade, and collect garbage (depending on the type of service)
- apt - for debian and its derivatives*.
- compose - iterates
~/compose/
subdirs and does the above. - caddy - iterates
/etc/caddy/
subdirs, pulls git repos, and runsbuild.sh
if it exists. then restarts caddy.
* untested