|
Lines 65-76
function restrict_root_login() {
Link Here
|
| 65 |
|
65 |
|
| 66 |
if [ $# -eq 0 -o "$1" = "-h" -o "$1" = "--help" ]; then |
66 |
if [ $# -eq 0 -o "$1" = "-h" -o "$1" = "--help" ]; then |
| 67 |
echo |
67 |
echo |
| 68 |
echo "When started, deactivates all access to the UCS and enforces the" |
68 |
echo "When called with 'start', deactivates all access to the UCS and enforces" |
| 69 |
echo "redirection to a system activation web service. This service will be" |
69 |
echo "the redirection to a system activation web service. This service will be" |
| 70 |
echo "disabled and previous apache sites will be re-activated after an" |
70 |
echo "disabled and previous apache sites will be re-activated after an" |
| 71 |
echo "activated license has been imported successfully." |
71 |
echo "activated license has been imported successfully." |
| 72 |
echo |
72 |
echo |
| 73 |
echo "usage: $(basename $0) [start|stop]" |
73 |
echo "The action 'restrict-root' disables root access to the machine and" |
|
|
74 |
echo "'allow-root' reverts these restrictions. Both will also be called along" |
| 75 |
echo "with the actions 'start'/'stop', respectively." |
| 76 |
echo |
| 77 |
echo "usage: $(basename $0) [start|stop|allow-root|restrict-root]" |
| 74 |
echo |
78 |
echo |
| 75 |
exit 0 |
79 |
exit 0 |
| 76 |
fi |
80 |
fi |