testan a reboold
This commit is contained in:
+4
-2
@@ -63,14 +63,16 @@ echo -e "\tInstalling crontabs! just save file and exit with no edits"
|
|||||||
read -p "Press ENTER to Continue"
|
read -p "Press ENTER to Continue"
|
||||||
sudo crontab -e
|
sudo crontab -e
|
||||||
(sudo crontab -l 2>/dev/null && sudo cat $crontab_new) | sudo crontab -
|
(sudo crontab -l 2>/dev/null && sudo cat $crontab_new) | sudo crontab -
|
||||||
## test it
|
|
||||||
# sudo visudo -c
|
|
||||||
|
|
||||||
# set up passwordless sudo
|
# set up passwordless sudo
|
||||||
## backup first
|
## backup first
|
||||||
sudo cp /etc/sudoers /etc/sudoers.bak
|
sudo cp /etc/sudoers /etc/sudoers.bak
|
||||||
## replace sudoers with mine
|
## replace sudoers with mine
|
||||||
sudo cat $sudoers_new > $sudoers
|
sudo cat $sudoers_new > $sudoers
|
||||||
|
## test it
|
||||||
|
sudo visudo -c
|
||||||
|
## Check for users approval to continue
|
||||||
|
read -p "Press ENTER to Continue"
|
||||||
|
|
||||||
# config hwclockset
|
# config hwclockset
|
||||||
# echo -e "\tConfiguring hwclockset"
|
# echo -e "\tConfiguring hwclockset"
|
||||||
|
|||||||
Reference in New Issue
Block a user