You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install.sh 395B

123456789101112131415
  1. #!/bin/bash
  2. CONFIG_DIR=/etc/mastoreddit
  3. DATA_DIR=/var/lib/mastoreddit
  4. # Make directories for things.
  5. mkdir -p $CONFIG_DIR $DATA_DIR
  6. cp config.json $CONFIG_DIR
  7. echo '[]' > $DATA_DIR/recents.json
  8. # Enable systemd things.
  9. cp mastoreddit.service mastoreddit-trigger.timer /etc/systemd/system
  10. systemctl daemon-reload
  11. systemctl enable mastoreddit.service
  12. systemctl enable mastoreddit-trigger.timer