Merge branch 'master' into next
This commit is contained in:
commit
23a4a230a1
|
@ -123,8 +123,8 @@ Windows & Node.js
|
||||||
1. Install [node.js](https://nodejs.org)
|
1. Install [node.js](https://nodejs.org)
|
||||||
2. Open _Node.js_
|
2. Open _Node.js_
|
||||||
2. Run the command `npm install -g telebit`
|
2. Run the command `npm install -g telebit`
|
||||||
2. Copy the example daemon conifg to your user folder `.config/telebit/telebitd.yml` (such as `/Users/John/.config/telebit/telebitd.yml`)
|
2. Copy the example daemon config to your user folder `.config/telebit/telebitd.yml` (such as `/Users/John/.config/telebit/telebitd.yml`)
|
||||||
2. Copy the example remote conifg to your user folder `.config/telebit/telebit.yml` (such as `/Users/John/.config/telebit/telebit.yml`)
|
2. Copy the example remote config to your user folder `.config/telebit/telebit.yml` (such as `/Users/John/.config/telebit/telebit.yml`)
|
||||||
2. Change the email address
|
2. Change the email address
|
||||||
2. Run `npx telebit init` and follow the instructions
|
2. Run `npx telebit init` and follow the instructions
|
||||||
2. Run `npx telebit list`
|
2. Run `npx telebit list`
|
||||||
|
|
|
@ -496,23 +496,30 @@ elif [ "systemd" == "$my_system_launcher" ]; then
|
||||||
else
|
else
|
||||||
echo -n "."
|
echo -n "."
|
||||||
fi
|
fi
|
||||||
systemctl --user daemon-reload
|
set +e
|
||||||
# enable also puts success output to stderr... why?
|
if systemctl --user daemon-reload; then
|
||||||
systemctl --user enable $my_app >/dev/null 2>/dev/null
|
# enable also puts success output to stderr... why?
|
||||||
#echo " > systemctl --user enable systemd-tmpfiles-setup.service systemd-tmpfiles-clean.timer"
|
systemctl --user enable $my_app >/dev/null 2>/dev/null
|
||||||
#systemctl --user enable systemd-tmpfiles-setup.service systemd-tmpfiles-clean.timer
|
#echo " > systemctl --user enable systemd-tmpfiles-setup.service systemd-tmpfiles-clean.timer"
|
||||||
if [ -n "${TELEBIT_DEBUG}" ]; then
|
#systemctl --user enable systemd-tmpfiles-setup.service systemd-tmpfiles-clean.timer
|
||||||
echo " > systemctl --user start $my_app"
|
if [ -n "${TELEBIT_DEBUG}" ]; then
|
||||||
fi
|
echo " > systemctl --user start $my_app"
|
||||||
systemctl --user stop $my_app >/dev/null 2>/dev/null
|
fi
|
||||||
systemctl --user start $my_app >/dev/null
|
systemctl --user stop $my_app >/dev/null 2>/dev/null
|
||||||
sleep 2; # give it time to start
|
systemctl --user start $my_app >/dev/null
|
||||||
_is_running=$(systemctl --user status --no-pager $my_app 2>/dev/null | grep "active.*running")
|
|
||||||
if [ -z "$_is_running" ]; then
|
sleep 2; # give it time to start
|
||||||
echo "Something went wrong:"
|
_is_running=$(systemctl --user status --no-pager $my_app 2>/dev/null | grep "active.*running")
|
||||||
systemctl --user status --no-pager $my_app
|
if [ -z "$_is_running" ]; then
|
||||||
exit 1
|
echo "Something went wrong:"
|
||||||
|
systemctl --user status --no-pager $my_app
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "libpam-systemd is missing, which is required on Linux to register Telebit with the user launcher."
|
||||||
|
echo "sudo apt-get install -y libpam-systemd"
|
||||||
|
sudo apt-get install -y libpam-systemd
|
||||||
fi
|
fi
|
||||||
|
set -e
|
||||||
echo -n "."
|
echo -n "."
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue