Automatically update installed scripts
This commit is contained in:
parent
db89ef25d9
commit
db6644d980
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
cp scripts/riju.service /etc/systemd/system/riju.service
|
||||
cp scripts/certbot-pre.bash /etc/letsencrypt/renewal-hooks/pre/riju
|
||||
cp scripts/certbot-post.bash /etc/letsencrypt/renewal-hooks/post/riju
|
||||
cp scripts/install.py /usr/bin/riju-install
|
||||
chgrp deploy /usr/bin/riju-install
|
||||
chmod u=rwxs,g=rx,o= /usr/bin/riju-install
|
||||
|
||||
systemctl daemon-reload
|
|
@ -39,5 +39,6 @@ with tempfile.TemporaryDirectory() as tmpdir:
|
|||
)
|
||||
os.chdir("riju")
|
||||
subprocess.run(["make", "image-prod"], check=True)
|
||||
subprocess.run(["scripts/install-scripts.bash"], check=True)
|
||||
subprocess.run(["docker", "system", "prune", "-f"], check=True)
|
||||
subprocess.run(["systemctl", "restart", "riju"], check=True)
|
||||
|
|
Loading…
Reference in New Issue