Amy
0970c05b05
install.sh: fail out on command failure
...
The current setup of install.sh means that all the other commands will still run if any command fails. This creates a volatile and unsafe state should something go wrong, one which may cause recovering difficulties depending on the type of failure.
This patch fixes that problem by adding the "set -e" command to the beginning of the script. This command will cause the script to exit if a command fails.
Signed-off-by: Amy Parker <apark0006@student.cerritos.edu >
2023-07-19 20:35:56 -07:00
Amy
bd815bf26a
install.sh: properly handle superuser permissions
...
This script is based around having superuser permissions. The way it handles them is by using `sudo`. This has two main problems:
1. It could potentially require someone to input their password many, many times depending on their sudo configuration.
2. Even when running as root, the script will break for anyone without sudo installed.
The way to fix this is simple: require the script itself be run as root instead of using sudo.
This patch adds a check at the beginning which verifies if the user is root. If the user is not root, it explains what must be done to rectify the problem. It then also removes all usages of sudo throughout the script.
This also aligns the script with more typical scriptwriting conventions, overall improving the quality of the script.
2023-07-19 20:32:49 -07:00
dinger1986
4170dc1f80
Update WindowsAgentAIOInstall.ps1
2023-07-11 22:07:27 +01:00
dinger1986
55595cfd88
Update WindowsAgentAIOInstall.ps1
2023-07-11 22:05:21 +01:00
dinger1986
7088c180f1
Update WindowsAgentAIOInstall.ps1
2023-07-05 17:42:55 +01:00
dinger1986
f6fa466d36
Merge pull request #40 from 0x3333/master
...
Change update script to only update if the version is different.
2023-06-21 17:04:05 +01:00
Tercio Gaudencio Filho
aa51e145d4
Change update script to only update if the version is different.
2023-06-21 12:56:40 -03:00
dinger1986
2e0ea53f90
Update Readme.md
2023-05-30 08:04:26 +00:00
dinger1986
faf48a468d
Update Readme.md
2023-05-30 08:03:03 +00:00
dinger1986
a864a6c4b0
Update Readme.md
2023-05-15 20:29:10 +01:00
dinger1986
2dbfd59ece
Update Readme.md
2023-05-15 20:28:06 +01:00
dinger1986
da55fe5b55
Update Readme.md
2023-05-15 20:27:33 +01:00
dinger1986
d0116d05be
Update update.sh
2023-03-15 20:11:24 +00:00
dinger1986
88ab17c248
Update install.sh
2023-03-15 20:09:31 +00:00
dinger1986
441c50b501
Update Readme.md
2023-03-15 20:04:52 +00:00
dinger1986
81b67ce3d4
Update Readme.md
2023-03-15 16:03:10 +00:00
dinger1986
b4dac8823b
Merge pull request #33 from tsarmis/master
2023-03-06 20:12:17 +00:00
tsarmis
539b955e86
Update Readme.md
2023-03-06 22:00:27 +02:00
tsarmis
431675ec06
Update Readme.md
2023-03-06 21:59:14 +02:00
tsarmis
967d22f369
Update Readme.md
2023-03-06 21:58:57 +02:00
tsarmis
823d47a978
Update Readme.md
2023-03-06 21:58:41 +02:00
tsarmis
4f8a2cc912
Update Readme.md
2023-03-06 21:58:27 +02:00
tsarmis
b0bac5c531
Update Readme.md
2023-03-06 21:57:50 +02:00
dinger1986
6eeda0ac3b
Merge pull request #31 from PolisanTheEasyNick/patch-1
2023-03-05 12:24:23 +00:00
PolisanTheEasyNick
6bcaabdfb8
Add support for aarch64
2023-03-02 13:01:19 +02:00
dinger1986
82a74d324e
Update update.sh
2023-01-31 13:46:15 +00:00
dinger1986
a8f86e2707
Update update.sh
2023-01-31 13:11:33 +00:00
dinger1986
7a6499aa5e
Update update.sh
2023-01-31 10:35:42 +00:00
dinger1986
ea148eccdb
Merge pull request #29 from ukedk/patch-2
2023-01-27 10:38:48 +00:00
ukedk
5fac3063d4
Update update.sh
...
sorry, unzip didnt worked with amd54-subfolder. fixed now. Thx.
2023-01-27 11:36:46 +01:00
dinger1986
b5de2d58eb
Merge pull request #28 from ukedk/patch-1
2023-01-27 10:12:37 +00:00
ukedk
9572101a59
x64 -> amd64, gohttp-chk
2023-01-27 11:05:34 +01:00
dinger1986
2cde345ee0
Update install.sh
2023-01-23 14:13:18 +00:00
dinger1986
d395487354
Update install.sh
2023-01-23 13:51:16 +00:00
dinger1986
bfd20819bf
Update install.sh
2023-01-23 13:39:19 +00:00
dinger1986
ce9ad93fe5
Merge pull request #27 from chenyhd/master
...
support arch based OS manjaro
2023-01-10 09:53:08 +00:00
Henry Chen
e617f99fb8
optimize arch based OS judge
2023-01-10 16:59:33 +08:00
Henry Chen
1cb7bb73d1
support arch based OS manjaro
2023-01-10 16:02:41 +08:00
dinger1986
45c2b846fd
Update Readme.md
2022-11-17 22:51:07 +00:00
dinger1986
c6c09b5c2a
Update linuxclientinstall.sh
2022-11-16 13:32:17 +00:00
dinger1986
5704c0433a
Update install.sh
2022-11-10 18:40:58 +00:00
dinger1986
f87a8d55e7
Update install.sh
2022-11-10 16:25:29 +00:00
dinger1986
0934fe0e57
Update install.sh
2022-11-10 15:06:09 +00:00
dinger1986
ac36eb41bc
Update install.sh
2022-11-09 19:29:23 +00:00
dinger1986
acbdc48f06
Update install.sh
2022-11-07 15:38:10 +00:00
dinger1986
f8ee95133b
Merge pull request #15 from shykeiichi/add-arch
2022-08-31 00:25:00 +01:00
shykeiichi
6adefa9784
Added arch as a supported OS
2022-08-31 00:14:00 +02:00
dinger1986
cfdf24284d
Update WindowsAgentAIOInstall.ps1
2022-08-29 15:01:55 +01:00
dinger1986
948ccfb334
Update WindowsAgentAIOInstall.ps1
2022-08-28 22:20:20 +01:00
dinger1986
da75059836
Update WindowsAgentAIOInstall.ps1
2022-08-22 11:08:54 +01:00