| ... | ... |
@@ -61,6 +61,9 @@ if [[ $EUID -eq 0 ]]; then |
| 61 | 61 |
fi |
| 62 | 62 |
|
| 63 | 63 |
echo "Giving stack user passwordless sudo priviledges" |
| 64 |
+ # natty uec images sudoers does not have a '#includedir'. add one. |
|
| 65 |
+ grep -q "^#includedir.*/etc/sudoers.d" /etc/sudoers || |
|
| 66 |
+ echo "#includedir /etc/sudoers.d" >> /etc/sudoers |
|
| 64 | 67 |
( umask 226 && echo "stack ALL=(ALL) NOPASSWD:ALL" \ |
| 65 | 68 |
> /etc/sudoers.d/50_stack_sh ) |
| 66 | 69 |
|