mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
fix template paths
This commit is contained in:
parent
359b6fb9d4
commit
8015e9a8da
3 changed files with 7 additions and 6 deletions
|
@ -113,9 +113,9 @@ touch /etc/hostapd/$app/allowed.csv
|
||||||
ynh_add_config --template="../conf/ynh-hotspot" --destination="/usr/local/bin/$service_name"
|
ynh_add_config --template="../conf/ynh-hotspot" --destination="/usr/local/bin/$service_name"
|
||||||
chmod 0755 "/usr/local/bin/$service_name"
|
chmod 0755 "/usr/local/bin/$service_name"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/captiveportal_fakedns" --destination="/usr/local/bin/captiveportal_fakedns"
|
ynh_add_config --template="../sources/captiveportal_fakedns" --destination="/usr/local/bin/captiveportal_fakedns"
|
||||||
chmod 0755 "/usr/local/bin/captiveportal_fakedns"
|
chmod 0755 "/usr/local/bin/captiveportal_fakedns"
|
||||||
ynh_add_config --template="../conf/captiveportal_allow" --destination="/usr/local/bin/captiveportal_allow"
|
ynh_add_config --template="../sources/captiveportal_allow" --destination="/usr/local/bin/captiveportal_allow"
|
||||||
chmod 0755 "/usr/local/bin/captiveportal_allow"
|
chmod 0755 "/usr/local/bin/captiveportal_allow"
|
||||||
|
|
||||||
# Copy openvpn scripts
|
# Copy openvpn scripts
|
||||||
|
@ -154,7 +154,7 @@ ynh_add_systemd_config --service=$service_name
|
||||||
ynh_add_systemd_config --service="hostapd@$app" --template="../conf/systemd_hostapd.service"
|
ynh_add_systemd_config --service="hostapd@$app" --template="../conf/systemd_hostapd.service"
|
||||||
yunohost service add $service_name --description "Creates a Wi-Fi access point" --test_status "systemctl is-active hostapd@$app" --need_lock
|
yunohost service add $service_name --description "Creates a Wi-Fi access point" --test_status "systemctl is-active hostapd@$app" --need_lock
|
||||||
|
|
||||||
ynh_add_systemd_config --service="captiveportal_fakedns" --template="captiveportal_fakedns"
|
ynh_add_systemd_config --service="captiveportal_fakedns" --template="../conf/captiveportal_fakedns.service"
|
||||||
yunohost service add captiveportal_fakedns --description "Captive portal dns service" --test_status "systemctl is-active captiveportal_fakedns"
|
yunohost service add captiveportal_fakedns --description "Captive portal dns service" --test_status "systemctl is-active captiveportal_fakedns"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -43,6 +43,7 @@ ynh_script_progression --message="Restoring configurations ..."
|
||||||
ynh_restore
|
ynh_restore
|
||||||
|
|
||||||
yunohost service add "$service_name" --description "Creates a Wi-Fi access point" --test_status "systemctl is-active hostapd@$app" --need_lock
|
yunohost service add "$service_name" --description "Creates a Wi-Fi access point" --test_status "systemctl is-active hostapd@$app" --need_lock
|
||||||
|
yunohost service add captiveportal_fakedns --description "Captive portal dns service" --test_status "systemctl is-active captiveportal_fakedns"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -181,9 +181,9 @@ fi
|
||||||
ynh_add_config --template="../conf/ynh-hotspot" --destination="/usr/local/bin/$service_name"
|
ynh_add_config --template="../conf/ynh-hotspot" --destination="/usr/local/bin/$service_name"
|
||||||
chmod 0755 "/usr/local/bin/$service_name"
|
chmod 0755 "/usr/local/bin/$service_name"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/captiveportal_fakedns" --destination="/usr/local/bin/captiveportal_fakedns"
|
ynh_add_config --template="../sources/captiveportal_fakedns" --destination="/usr/local/bin/captiveportal_fakedns"
|
||||||
chmod 0755 "/usr/local/bin/captiveportal_fakedns"
|
chmod 0755 "/usr/local/bin/captiveportal_fakedns"
|
||||||
ynh_add_config --template="../conf/captiveportal_allow" --destination="/usr/local/bin/captiveportal_allow"
|
ynh_add_config --template="../sources/captiveportal_allow" --destination="/usr/local/bin/captiveportal_allow"
|
||||||
chmod 0755 "/usr/local/bin/captiveportal_allow"
|
chmod 0755 "/usr/local/bin/captiveportal_allow"
|
||||||
|
|
||||||
# Copy openvpn scripts
|
# Copy openvpn scripts
|
||||||
|
@ -207,7 +207,7 @@ ynh_add_systemd_config --service="hostapd@$app" --template="../conf/systemd_host
|
||||||
|
|
||||||
yunohost service add $service_name --description "Creates a Wi-Fi access point" --test_status "systemctl is-active hostapd@$app" --need_lock
|
yunohost service add $service_name --description "Creates a Wi-Fi access point" --test_status "systemctl is-active hostapd@$app" --need_lock
|
||||||
|
|
||||||
ynh_add_systemd_config --service="captiveportal_fakedns" --template="captiveportal_fakedns"
|
ynh_add_systemd_config --service="captiveportal_fakedns" --template="../conf/captiveportal_fakedns.service"
|
||||||
yunohost service add captiveportal_fakedns --description "Captive portal dns service" --test_status "systemctl is-active captiveportal_fakedns"
|
yunohost service add captiveportal_fakedns --description "Captive portal dns service" --test_status "systemctl is-active captiveportal_fakedns"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue