#!/bin/sh baseURL=https://raw.githubusercontent.com/sup39/certrenew.service/master dst=/etc/systemd/system if [ ! -w "$dst" ]; then echo "$dst is not writable. Download to /tmp instead" dst=/tmp fi wget -P "$dst" "$baseURL/certrenew.service" "$baseURL/certrenew.timer" cat </dev/null; then break; fi done fi [ -z "$EDITOR" ] || "$EDITOR" "$dst/certrenew.service"