Skip to content

Commit

Permalink
Revert "minor tweaks"
Browse files Browse the repository at this point in the history
This reverts commit f9cbfaa.
  • Loading branch information
outdoorbits committed Oct 26, 2023
1 parent f9cbfaa commit 28bdf65
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/apache_ports.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python

# Author: Stefan Saam, [email protected]

Expand Down
22 changes: 22 additions & 0 deletions scripts/apache_ports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

# Author: Stefan Saam, [email protected]

#######################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#######################################################################

# catches the command from comitup and executes apache_ports.py

sudo python3 /var/www/little-backup-box/apache_ports.py "${1}"
2 changes: 1 addition & 1 deletion scripts/lib_comitup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run(self):
with open(self.configfile,'w') as f:
f.write('ap_name: little-backup-box-<nnnn>\n')
f.write('web_service: apache2.service\n')
f.write('external_callback: /var/www/little-backup-box/apache_ports.py\n')
f.write('external_callback: /var/www/little-backup-box/apache_ports.sh\n')
if self.Password:
if (
(len(self.Password) >= 8) and
Expand Down

0 comments on commit 28bdf65

Please sign in to comment.