Tidying
This commit is contained in:
parent
4b6a7febcf
commit
d9a82086a2
|
@ -232,16 +232,29 @@ function install_tahoelafs {
|
||||||
if [ ! -d /home/tahoelafs/data ]; then
|
if [ ! -d /home/tahoelafs/data ]; then
|
||||||
mkdir /home/tahoelafs/data
|
mkdir /home/tahoelafs/data
|
||||||
fi
|
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
|
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
|
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
|
TAHOELAFS_CONFIG=/home/tahoelafs/.tahoe-introducer/tahoe.cfg
|
||||||
if [ ! -f $TAHOELAFS_CONFIG ]; then
|
if [ ! -f $TAHOELAFS_CONFIG ]; then
|
||||||
exit 62831
|
exit 62831
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# create an onion address
|
||||||
TAHOELAFS_ONION_HOSTNAME=$(add_onion_service tahoelafs ${TAHOELAFS_PORT} ${TAHOELAFS_ONION_PORT})
|
TAHOELAFS_ONION_HOSTNAME=$(add_onion_service tahoelafs ${TAHOELAFS_PORT} ${TAHOELAFS_ONION_PORT})
|
||||||
tahoelafs_setup_config $TAHOELAFS_CONFIG
|
tahoelafs_setup_config $TAHOELAFS_CONFIG
|
||||||
|
|
||||||
|
# create a daemon
|
||||||
TAHOELAFS_DAEMON_FILE=/etc/systemd/system/tahoelafs.service
|
TAHOELAFS_DAEMON_FILE=/etc/systemd/system/tahoelafs.service
|
||||||
echo '[Unit]' > $TAHOELAFS_DAEMON_FILE
|
echo '[Unit]' > $TAHOELAFS_DAEMON_FILE
|
||||||
echo 'Description=Tahoe-LAFS introducer' >> $TAHOELAFS_DAEMON_FILE
|
echo 'Description=Tahoe-LAFS introducer' >> $TAHOELAFS_DAEMON_FILE
|
||||||
|
|
Loading…
Reference in New Issue