diff --git a/src/freedombone-app-tahoelafs b/src/freedombone-app-tahoelafs index e5eec7e1..b7bcaaf7 100755 --- a/src/freedombone-app-tahoelafs +++ b/src/freedombone-app-tahoelafs @@ -232,16 +232,29 @@ function install_tahoelafs { if [ ! -d /home/tahoelafs/data ]; then mkdir /home/tahoelafs/data fi + + # remove files we don't need + rm /home/tahoelafs/.mutt + rm /home/tahoelafs/.emacs-mutt + rm /home/tahoelafs/.muttrc + rm /home/tahoelafs/.mutt-alias + rm /home/tahoelafs/.procmailrc + + # set permissions chown -R tahoelafs:tahoelafs /home/tahoelafs + + # create the introducer config su -c "$TAHOE_COMMAND create-introducer -C /home/tahoelafs/data --hide-ip --hostname=127.0.0.1" - tahoelafs TAHOELAFS_CONFIG=/home/tahoelafs/.tahoe-introducer/tahoe.cfg if [ ! -f $TAHOELAFS_CONFIG ]; then exit 62831 fi + # create an onion address TAHOELAFS_ONION_HOSTNAME=$(add_onion_service tahoelafs ${TAHOELAFS_PORT} ${TAHOELAFS_ONION_PORT}) tahoelafs_setup_config $TAHOELAFS_CONFIG + # create a daemon TAHOELAFS_DAEMON_FILE=/etc/systemd/system/tahoelafs.service echo '[Unit]' > $TAHOELAFS_DAEMON_FILE echo 'Description=Tahoe-LAFS introducer' >> $TAHOELAFS_DAEMON_FILE