Move riju-init-volume to runtime

This commit is contained in:
Radon Rosborough 2021-03-13 10:56:24 -08:00
parent b1501f9d5d
commit 770f54e6d2
2 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,6 @@ sudo chown root:root /tmp/riju /tmp/riju-deploy /tmp/riju.service
sudo mv /tmp/riju /tmp/riju-deploy /tmp/riju-init-volume /tmp/riju-install-certbot-hooks /usr/local/bin/
sudo mv /tmp/riju.service /etc/systemd/system/
sudo riju-init-volume
for user in admin deploy; do
if ! grep -vq "PRIVATE KEY" "/tmp/id_${user}.pub"; then
echo "${user} public key was set to a private key, aborting" >&2

View File

@ -9,6 +9,8 @@ fi
image="$1"
riju-init-volume
echo "Pull image to be deployed..."
docker pull "${image}"