mirror of
https://github.com/ilyakooo0/xmrig-bash-scripts.git
synced 2024-11-22 04:04:22 +03:00
provide easy way to enable/disable user crontab
This commit is contained in:
parent
2d34d17106
commit
272b4f186d
18
crontab-off.sh
Executable file
18
crontab-off.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "#################################"
|
||||
echo "# DISABLING CRONTAB #"
|
||||
echo "#################################"
|
||||
|
||||
|
||||
# Remove existing crontab
|
||||
echo "Backup existing crontab"
|
||||
crontab -l > crontab
|
||||
|
||||
echo "Removing exiting crontab"
|
||||
crontab -r
|
||||
|
||||
echo "#################################"
|
||||
echo "# CRONTAB DISABLED #"
|
||||
echo "#################################"
|
||||
|
19
crontab-on.sh
Executable file
19
crontab-on.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "####################################"
|
||||
echo "# ENABLING CRONTAB #"
|
||||
echo "####################################"
|
||||
|
||||
# Get settings
|
||||
. settings.sh
|
||||
. functions.sh
|
||||
sleep 5
|
||||
|
||||
# Setup crontab for user
|
||||
. crontab.sh
|
||||
sleep 5
|
||||
|
||||
echo "####################################"
|
||||
echo "# CRONTAB ENABLED #"
|
||||
echo "####################################"
|
||||
|
Loading…
Reference in New Issue
Block a user