Tidying
This commit is contained in:
parent
4b6a7febcf
commit
d9a82086a2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue