-
-
Save arianvp/50ece219b165c1c36fff4e63ec10c4b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
After=network.target network-online.target | |
Before=acme-certificates.target | |
Description=Renew ACME Certificate for arianvp.me | |
Wants=network-online.target | |
[Service] | |
Environment="LOCALE_ARCHIVE=/nix/store/lh4mqgwvrbiw22ix3bsp54qbgn2jfkxm-glibc-locales-2.24/lib/locale/locale-archive" | |
Environment="PATH=/nix/store/87sfbwxk40p17qyh81h88ym56a3iakyy-simp_le-2016-04-17/bin:/nix/store/8rn45r9ndfq5h7mx58r35p2szky5ja6n-coreutils-8.25/bin:/nix/store/gjm2wjh8m72ch3ikiznn4v40h9mvpfks-findutils-4.6.0/bin:/nix/store/h9aqgpgspgjhygj63wpncfzvz5ys851n-gnugrep-2.25/bin:/nix/store/1awgi4ba6ymlzib2l7bxa13i17nq27d0-gnused-4.2.2/bin:/nix/store/27yfjs1hn3d758n37fb75084j7vmz92g-systemd-231/bin:/nix/store/87sfbwxk40p17qyh81h88ym56a3iakyy-simp_le-2016-04-17/sbin:/nix/store/8rn45r9ndfq5h7mx58r35p2szky5ja6n-coreutils-8.25/sbin:/nix/store/gjm2wjh8m72ch3ikiznn4v40h9mvpfks-findutils-4.6.0/sbin:/nix/store/h9aqgpgspgjhygj63wpncfzvz5ys851n-gnugrep-2.25/sbin:/nix/store/1awgi4ba6ymlzib2l7bxa13i17nq27d0-gnused-4.2.2/sbin:/nix/store/27yfjs1hn3d758n37fb75084j7vmz92g-systemd-231/sbin" | |
Environment="TZDIR=/nix/store/6ljsbjqp5bshbg3d7v8zb392j8qq674c-tzdata-2016f/share/zoneinfo" | |
ExecStart=/nix/store/7idrrg571y9c8bj84b36wnp0axqd5ppk-unit-script/bin/acme-arianvp.me-start | |
ExecStartPre=/nix/store/bxmkggxfi0iqs3jk3fzj804r06i9ivp6-unit-script/bin/acme-arianvp.me-pre-start | |
ExecStopPost=/nix/store/fz538fgnd5bczw891zlsqhbdfq8hc6hi-unit-script/bin/acme-arianvp.me-post-stop | |
Group=root | |
PermissionsStartOnly=true | |
PrivateTmp=true | |
SuccessExitStatus=0 | |
SuccessExitStatus=1 | |
Type=oneshot | |
User=root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /nix/store/28wl3f34vfjpw0y5809bgr6382wqdscf-bash-4.3-p48/bin/bash -e | |
mkdir -p '/var/lib/acme' | |
chown 'root:root' '/var/lib/acme' | |
if [ ! -d '/var/lib/acme/arianvp.me' ]; then | |
mkdir '/var/lib/acme/arianvp.me' | |
fi | |
chmod 700 '/var/lib/acme/arianvp.me' | |
chown -R 'root:root' '/var/lib/acme/arianvp.me' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment