added services option to activate services later on
This commit is contained in:
parent
90136e7468
commit
c08cfefdb4
13
fresh.sh
13
fresh.sh
@ -7,7 +7,7 @@ logfile="/dev/null"
|
||||
todo="install"
|
||||
|
||||
# Get params
|
||||
while getopts "r:p:d:vuh" opt;
|
||||
while getopts "r:p:d:vush" opt;
|
||||
do case $opt in
|
||||
h) echo -e "-r: https://link-to-repo\n-p: /link/to/prog/file\n-d: devicename for special dotfiles\n-v: verbose, please supply logfile path (default is $HOME/install.log)" && exit ;;
|
||||
d) device=${OPTARG} ;;
|
||||
@ -16,6 +16,7 @@ do case $opt in
|
||||
a) aurhelper=${OPTARG} ;;
|
||||
v) logfile="$scriptdir/install.log" ;;
|
||||
u) todo="update" ;;
|
||||
s) todo="services" ;;
|
||||
\?) echo "-$OPTARG is not valid" >&2 && exit ;;
|
||||
esac
|
||||
done
|
||||
@ -249,7 +250,7 @@ case $todo in
|
||||
set_permissions "Defaults timestamp_timeout=45\n%wheel ALL=(ALL) ALL\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Syyu,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys"
|
||||
no_beep
|
||||
set_system_stuff
|
||||
enable_service "--user syncthing" "netctl-auto@wlp3s0" "--user offlineimap@philip_thi" "--user offlineimap@philip_posteo" "--user offlineimap@philip_gmail"
|
||||
enable_service "--user syncthing" "netctl-auto@wlp3s0" "--user offlineimap@philip_thi" "--user offlineimap@philip_posteo" "--user offlineimap@philip_gmail"
|
||||
ready_steady_go
|
||||
clear
|
||||
;;
|
||||
@ -263,4 +264,12 @@ case $todo in
|
||||
ready_steady_go
|
||||
clear
|
||||
;;
|
||||
services)
|
||||
init
|
||||
startup_msg
|
||||
pre_update
|
||||
enable_service "netctl-auto@wlp3s0" "--user offlineimap@philip_thi" "--user offlineimap@philip_posteo" "--user offlineimap@philip_gmail"
|
||||
ready_steady_go
|
||||
clear
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user