mirror of
https://github.com/ilyakooo0/xmrig-bash-scripts.git
synced 2024-11-22 04:04:22 +03:00
Merge branch 'release/v1.0.5'
This commit is contained in:
commit
a47baa35e4
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