diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-09-07 08:52:44 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-09-07 08:52:44 +0200 |
| commit | c27ec9af26ee58d10c8a4120eb30ea30ed3e48dd (patch) | |
| tree | ea6468cef43a4c7b61c1d6c1f198535e9204d38a /install | |
| parent | c2ef576bcf9b69059492f7b7b4dfe89eb438fe44 (diff) | |
| parent | fec8285a351a0586107fcba0d11d078d8d5cd368 (diff) | |
| download | dotfiles-c27ec9af26ee58d10c8a4120eb30ea30ed3e48dd.tar.gz dotfiles-c27ec9af26ee58d10c8a4120eb30ea30ed3e48dd.tar.bz2 dotfiles-c27ec9af26ee58d10c8a4120eb30ea30ed3e48dd.zip | |
Merge branch 'master' of cacharle.xyz:/srv/git/dotfiles
Diffstat (limited to 'install')
| -rwxr-xr-x | install | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -6,7 +6,7 @@ if [ "$USER" = 'root' ] then - crontab 'crontab/root.crontab' + crontab crontab/root.crontab exit fi @@ -96,7 +96,14 @@ parallel_wait ############################################################################### echo '---------------------------- INSTALL CRONTAB -----------------------------' -crontab 'crontab/user.crontab' + +if [ "$(hostname)" = 'charleslaptopcarbon' ] +then + cat crontab/user.crontab crontab/laptop.crontab | crontab - +else + crontab crontab/user.crontab +fi + echo 'INFO: Run this script as root if you want to install the root contab' ############################################################################### |
