diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e691441 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +extra-settings-plugin.zip \ No newline at end of file diff --git a/bundle.sh b/bundle.sh new file mode 100755 index 0000000..77e0195 --- /dev/null +++ b/bundle.sh @@ -0,0 +1,11 @@ +# Delete previous bundle if exists +rm -f ./extra-settings-plugin.zip + +# Bundle the plugin +zip ./extra-settings-plugin.zip \ + etc/sudoers.d/x-extra-settings-plugin \ + index.html \ + index.js \ + main.py \ + install.sh + \ No newline at end of file diff --git a/etc/sudoers.d/x-extra-settings-plugin b/etc/sudoers.d/x-extra-settings-plugin new file mode 100644 index 0000000..42a44e8 --- /dev/null +++ b/etc/sudoers.d/x-extra-settings-plugin @@ -0,0 +1,4 @@ +# This file is required to allow the "deck" user to toggle the sshd service +deck ALL=NOPASSWD: /bin/systemctl start sshd.service +deck ALL=NOPASSWD: /bin/systemctl stop sshd.service +deck ALL=NOPASSWD: /bin/systemctl restart sshd.service \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..74f355e --- /dev/null +++ b/index.html @@ -0,0 +1,36 @@ + +
+ + + + + + + +