diff options
author | neodarz <neodarz@neodarz.net> | 2017-04-23 16:50:59 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-04-23 16:50:59 +0200 |
commit | ea1b7e67fa0919add6908df79e8979d99e97d6d4 (patch) | |
tree | c75ad134c05456af1d0b2c43fe3dfc37acd1887a | |
parent | 2d624758a49ea8600e44ccd2f643456fcb7c9d3f (diff) | |
download | dotfiles_ascii-ea1b7e67fa0919add6908df79e8979d99e97d6d4.tar.xz dotfiles_ascii-ea1b7e67fa0919add6908df79e8979d99e97d6d4.zip |
Add stow script like for install user's services
Diffstat (limited to '')
-rwxr-xr-x | stow-services | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/stow-services b/stow-services new file mode 100755 index 0000000..23f1ed9 --- /dev/null +++ b/stow-services @@ -0,0 +1,11 @@ +serviceName=$(echo $1 | cut -d'/' -f'2') +if [[ $1 =~ "/" && $serviceName != "" ]]; then + if [ -f "$1" ]; then + sudo ln -s $(readlink -f $1) /usr/lib/systemd/user/$serviceName + else + echo "Warning ! You must be in the dotfile folder to execute this !" + echo "Sorry the file $1 not found !" + fi +else + echo "Syntax: services/<name of the service" +fi |