Move riju-init-volume to runtime
This commit is contained in:
parent
b1501f9d5d
commit
770f54e6d2
|
@ -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 /tmp/riju-deploy /tmp/riju-init-volume /tmp/riju-install-certbot-hooks /usr/local/bin/
|
||||||
sudo mv /tmp/riju.service /etc/systemd/system/
|
sudo mv /tmp/riju.service /etc/systemd/system/
|
||||||
|
|
||||||
sudo riju-init-volume
|
|
||||||
|
|
||||||
for user in admin deploy; do
|
for user in admin deploy; do
|
||||||
if ! grep -vq "PRIVATE KEY" "/tmp/id_${user}.pub"; then
|
if ! grep -vq "PRIVATE KEY" "/tmp/id_${user}.pub"; then
|
||||||
echo "${user} public key was set to a private key, aborting" >&2
|
echo "${user} public key was set to a private key, aborting" >&2
|
||||||
|
|
|
@ -9,6 +9,8 @@ fi
|
||||||
|
|
||||||
image="$1"
|
image="$1"
|
||||||
|
|
||||||
|
riju-init-volume
|
||||||
|
|
||||||
echo "Pull image to be deployed..."
|
echo "Pull image to be deployed..."
|
||||||
docker pull "${image}"
|
docker pull "${image}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue