main
John Lauer Publish 0.1.0 d8a45ab
#!/bin/bash
# adom/hydrogen-linux-bootstrap install (runs in the Adom-Workspace machine, as the workspace user).
# Installs the re-convergence hook Hydrogen runs after every package update, then runs it once.
# The host half (host/hydrogen-host-setup.sh) is run by Hydrogen itself on the computer, with one
# password prompt; see README.
set -u
HERE=$(cd "$(dirname "$0")" && pwd)
mkdir -p "$HOME/.adom/hooks"
install -m 755 "$HERE/hooks/hydrogen-linux-platform-hygiene.sh" "$HOME/.adom/hooks/hydrogen-linux-platform-hygiene.sh"
chmod +x "$HERE/host/hydrogen-host-setup.sh" 2>/dev/null || true
bash "$HOME/.adom/hooks/hydrogen-linux-platform-hygiene.sh" || true