mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Merge billz:master into bridge-mode
This commit is contained in:
parent
5e44aae1c5
commit
5d57765669
6 changed files with 28 additions and 18 deletions
18
.github/stale.yml
vendored
Normal file
18
.github/stale.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Number of days of inactivity before an issue becomes stale
|
||||||
|
daysUntilStale: 60
|
||||||
|
# Number of days of inactivity before a stale issue is closed
|
||||||
|
daysUntilClose: 7
|
||||||
|
# Issues with these labels will never be considered stale
|
||||||
|
exemptLabels:
|
||||||
|
- pinned
|
||||||
|
- enhancement
|
||||||
|
- feature request
|
||||||
|
# Label to use when marking an issue as stale
|
||||||
|
staleLabel: stale
|
||||||
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
This issue has been automatically marked as stale because it has not had
|
||||||
|
recent activity. It will be closed if no further activity occurs. Thank you
|
||||||
|
for your contributions.
|
||||||
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
|
closeComment: false
|
|
@ -273,18 +273,17 @@ span.label.label-warning {
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="alert"] {
|
[class*="alert"] {
|
||||||
border-radius: 0px;
|
border-radius: .35rem;
|
||||||
color: #d2d2d2;
|
color: #d2d2d2;
|
||||||
background-color: #202020;
|
background-color: #202020;
|
||||||
border-color: #d2d2d2;
|
border: 1px solid #404040;
|
||||||
border: 1px dashed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
font-size: 18px;
|
font-size: 1.2em;
|
||||||
font-weight: normal;
|
font-weight: 400;
|
||||||
text-shadow: 0 0px 0 #202020;
|
text-shadow: none;
|
||||||
opacity: 1;
|
color: #d2d2d2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-control,
|
.form-control,
|
||||||
|
|
|
@ -109,13 +109,6 @@ function create_hostapd_scripts() {
|
||||||
sudo chmod 750 "$raspap_dir/hostapd/"*.sh || install_error "Unable to change file permissions"
|
sudo chmod 750 "$raspap_dir/hostapd/"*.sh || install_error "Unable to change file permissions"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate dnsmasq logfile
|
|
||||||
function create_dnsmasq_log() {
|
|
||||||
install_log "Creating dnsmasq logfile"
|
|
||||||
sudo touch /tmp/dnsmasq.log || install_error "Unable to create logfile /tmp/dnsmasq.log"
|
|
||||||
sudo chown dnsmasq:"$raspap_user" /tmp/dnsmasq.log || install_error "Unable to change file ownership"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Generate lighttpd service control scripts
|
# Generate lighttpd service control scripts
|
||||||
function create_lighttpd_scripts() {
|
function create_lighttpd_scripts() {
|
||||||
install_log "Creating lighttpd control scripts"
|
install_log "Creating lighttpd control scripts"
|
||||||
|
@ -267,8 +260,6 @@ function default_configuration() {
|
||||||
'echo 1 > \/proc\/sys\/net\/ipv4\/ip_forward #RASPAP'
|
'echo 1 > \/proc\/sys\/net\/ipv4\/ip_forward #RASPAP'
|
||||||
'iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP'
|
'iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP'
|
||||||
'iptables -t nat -A POSTROUTING -s 192.168.50.0\/24 ! -d 192.168.50.0\/24 -j MASQUERADE #RASPAP'
|
'iptables -t nat -A POSTROUTING -s 192.168.50.0\/24 ! -d 192.168.50.0\/24 -j MASQUERADE #RASPAP'
|
||||||
'chown dnsmasq:www-data \/tmp\/dnsmasq.log #RASPAP'
|
|
||||||
'chown root:www-data \/tmp\/hostapd.log #RASPAP'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for line in "${lines[@]}"; do
|
for line in "${lines[@]}"; do
|
||||||
|
@ -350,6 +341,8 @@ function patch_system_files() {
|
||||||
"/etc/raspap/hostapd/servicestart.sh"
|
"/etc/raspap/hostapd/servicestart.sh"
|
||||||
"/etc/raspap/lighttpd/configport.sh"
|
"/etc/raspap/lighttpd/configport.sh"
|
||||||
"/etc/raspap/openvpn/configauth.sh"
|
"/etc/raspap/openvpn/configauth.sh"
|
||||||
|
"/bin/chmod o+r /tmp/hostapd.log"
|
||||||
|
"/bin/chmod o+r /tmp/dnsmasq.log"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check if sudoers needs patching
|
# Check if sudoers needs patching
|
||||||
|
@ -464,7 +457,6 @@ function install_raspap() {
|
||||||
download_latest_files
|
download_latest_files
|
||||||
change_file_ownership
|
change_file_ownership
|
||||||
create_hostapd_scripts
|
create_hostapd_scripts
|
||||||
create_dnsmasq_log
|
|
||||||
create_lighttpd_scripts
|
create_lighttpd_scripts
|
||||||
move_config_file
|
move_config_file
|
||||||
default_configuration
|
default_configuration
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
/bin/sed -i 's|#DAEMON_OPTS=""|DAEMON_OPTS=" -f /tmp/hostapd.log"|' /etc/default/hostapd
|
/bin/sed -i 's|#DAEMON_OPTS=""|DAEMON_OPTS=" -f /tmp/hostapd.log"|' /etc/default/hostapd
|
||||||
touch /tmp/hostapd.log
|
touch /tmp/hostapd.log
|
||||||
chmod o+r /tmp/hostapd.log
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
exec('sudo chmod o+r /tmp/dnsmasq.log');
|
||||||
$log = file_get_contents('/tmp/dnsmasq.log');
|
$log = file_get_contents('/tmp/dnsmasq.log');
|
||||||
echo '<textarea class="logoutput my-3">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
|
echo '<textarea class="logoutput my-3">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -113,6 +113,7 @@
|
||||||
<div class="form-group col-md-8">
|
<div class="form-group col-md-8">
|
||||||
<?php
|
<?php
|
||||||
if ($arrHostapdConf['LogEnable'] == 1) {
|
if ($arrHostapdConf['LogEnable'] == 1) {
|
||||||
|
exec('sudo /bin/chmod o+r /tmp/hostapd.log');
|
||||||
$log = file_get_contents('/tmp/hostapd.log');
|
$log = file_get_contents('/tmp/hostapd.log');
|
||||||
echo '<br /><textarea class="logoutput">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
|
echo '<br /><textarea class="logoutput">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue