diff --git a/install.py b/install.py index 1622230..71b347f 100755 --- a/install.py +++ b/install.py @@ -312,6 +312,7 @@ def write_when_new(filename, content, as_root=False, ignore_reduction=False): return False if doit: if lines: + Path(filename).parent.mkdir(parents=True, exist_ok=True) with tempfile.NamedTemporaryFile('w') as fil: fil.write(content) fil.flush() diff --git a/to_home/.bash_profile b/to_home/.bash_profile index 4188d94..b7aaef1 100644 --- a/to_home/.bash_profile +++ b/to_home/.bash_profile @@ -10,7 +10,11 @@ pathadd ~/.local/bin pathadd ~/frappy/bin frappy() { - systemctl --user $1 frappy + if [[ -z "$1" ]]; then + echo "Usage: frappy status|start|stop|restart" + else + systemctl --user $1 frappy + fi } boxweb() {