tahoelafs paths
This commit is contained in:
parent
5bd77daaf8
commit
427f11049a
|
@ -545,9 +545,9 @@ function create_tahoelafs_daemon {
|
|||
echo 'Type=simple' >> $TAHOELAFS_DAEMON_FILE
|
||||
echo "User=tahoelafs" >> $TAHOELAFS_DAEMON_FILE
|
||||
echo "Group=debian-tor" >> $TAHOELAFS_DAEMON_FILE
|
||||
echo "WorkingDirectory=${TAHOE_DIR}/tahoelafs" >> $TAHOELAFS_DAEMON_FILE
|
||||
echo "ExecStart=${TAHOE_DIR}/tahoelafs/venv/bin/tahoe run ${TAHOE_DIR}/${daemon_name}" >> $TAHOELAFS_DAEMON_FILE
|
||||
echo "ExecStop=${TAHOE_DIR}/tahoelafs/venv/bin/tahoe stop ${TAHOE_DIR}/${daemon_name}" >> $TAHOELAFS_DAEMON_FILE
|
||||
echo "WorkingDirectory=${TAHOE_DIR}" >> $TAHOELAFS_DAEMON_FILE
|
||||
echo "ExecStart=/usr/bin/tahoe run ${TAHOE_DIR}/${daemon_name}" >> $TAHOELAFS_DAEMON_FILE
|
||||
echo "ExecStop=/usr/bin/tahoe stop ${TAHOE_DIR}/${daemon_name}" >> $TAHOELAFS_DAEMON_FILE
|
||||
echo 'Restart=on-failure' >> $TAHOELAFS_DAEMON_FILE
|
||||
echo 'RestartSec=10' >> $TAHOELAFS_DAEMON_FILE
|
||||
echo "Environment=\"USER=tahoelafs\" \"HOME=${TAHOE_DIR}\"" >> $TAHOELAFS_DAEMON_FILE
|
||||
|
@ -628,8 +628,8 @@ function install_tahoelafs {
|
|||
# create a user
|
||||
adduser --disabled-login --gecos 'tahoe-lafs' tahoelafs
|
||||
|
||||
if [ ! -d /home/tahoelafs ]; then
|
||||
echo $'/home/tahoelafs directory was not created'
|
||||
if [ ! -d $TAHOE_DIR ]; then
|
||||
echo $"$TAHOE_DIR directory was not created"
|
||||
exit 879335
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue