mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-02-03 23:30:48 +00:00
new scripts and sort /etc
This commit is contained in:
parent
5cd7ccb055
commit
e1f5d4bb09
5 changed files with 81 additions and 24 deletions
22
usr/local/bin/generator
Executable file
22
usr/local/bin/generator
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Would you like to enable or disable the Static Generator Script?"
|
||||
select stagen in "Enable" "Disable"; do
|
||||
case $stagen in
|
||||
Enable ) sudo a2ensite 000-upload.conf > /dev/null;
|
||||
sudo systemctl reload apache2;
|
||||
echo "Static Generator Script enabled, access it by adding :81 to your Rpi IP in your browser";
|
||||
sudo chown -R pi:pi /home/pi
|
||||
sudo chown -R www-data:www-data /var/www/;
|
||||
sudo chmod -R 775 /var/www;
|
||||
break;;
|
||||
Disable ) sudo a2dissite 000-upload.conf > /dev/null;
|
||||
sudo systemctl reload apache2;
|
||||
echo "Static Generator Script disabled";
|
||||
sudo chown -R pi:pi /home/pi
|
||||
sudo chown -R www-data:www-data /var/www/;
|
||||
sudo chmod -R 775 /var/www;
|
||||
break;;
|
||||
esac
|
||||
done
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue