aboutsummaryrefslogtreecommitdiff
path: root/stow-services
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-09-13 18:39:33 +0200
committerneodarz <neodarz@neodarz.net>2017-09-13 18:39:33 +0200
commit31c214b1299b82444aff1c1d4f6d6f4f79706bda (patch)
treedacde766d6026df65a39d3655f0f37714f4a2b64 /stow-services
parent91b39b2ebafd5ae2009bb4806ec0e96518ac4bab (diff)
downloaddotfiles_ascii-31c214b1299b82444aff1c1d4f6d6f4f79706bda.tar.xz
dotfiles_ascii-31c214b1299b82444aff1c1d4f6d6f4f79706bda.zip
Migration of all services to systemd folder and remove usless code from stow-services
Diffstat (limited to '')
-rwxr-xr-xstow-services4
1 files changed, 1 insertions, 3 deletions
diff --git a/stow-services b/stow-services
index db9350c..6a8031a 100755
--- a/stow-services
+++ b/stow-services
@@ -1,9 +1,7 @@
serviceName=$(echo $1 | cut -d'/' -f'2')
if [[ $1 =~ "/" && $serviceName != "" ]]; then
if [ -f "$1" ]; then
- if [[ $(echo $1 | cut -d'/' -f1) == "services" ]]; then
- ln -s $(readlink -f $1) ~/.config/systemd/user/default.target.wants/$serviceName
- elif [[ $(echo $1 | cut -d'/' -f1) == "services-root" ]]; then
+ if [[ $(echo $1 | cut -d'/' -f1) == "services-root" ]]; then
sudo ln -s $(readlink -f $1) /usr/lib/systemd/system/$serviceName
else
echo "You can only install service from services and services-root folder !"