Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

power_off.php does not appear in /library/www/html/services #147

Closed
holta opened this issue Jul 20, 2017 · 8 comments
Closed

power_off.php does not appear in /library/www/html/services #147

holta opened this issue Jul 20, 2017 · 8 comments
Labels

Comments

@holta
Copy link
Member

holta commented Jul 20, 2017

Also the directory itself ("services") does not appear. Confirmed on a clean install of IIAB 6.3 on Raspbian Lite when following the instructions at http://FAQ.iiab.io number 16 here: http://wiki.laptop.org/go/IIAB/FAQ#Is_a_.22Rapid_Power_Off.22_button_possible_for_low-electricity_environments.3F

i.e. "allow_apache_sudo: True" was correctly placed into local_vars.yml prior to ./runansible

PS as a temporary workaround, one can do:

mkdir /library/www/html/services
cp /opt/iiab/iiab/roles/httpd/files/html/services/power_off.php /library/www/html/services
@holta holta added the bug label Jul 20, 2017
@georgejhunt
Copy link
Contributor

georgejhunt commented Jul 20, 2017 via email

@georgejhunt
Copy link
Contributor

georgejhunt commented Jul 20, 2017 via email

@holta
Copy link
Member Author

holta commented Jul 20, 2017

I suspect it should be - "{{ doc_root }}/services"

http://box/services/power_off.php is what we've documented @ http://FAQ.iiab.io
http://box/common/services/power_off.php is possible if there's a need to alter this.

(For now power_off.php does not appear in either directory during installation of IIAB 6.3)

@tim-moody
Copy link
Contributor

looks like https://github.com/tim-moody/iiab/blob/6.3-pwroff/roles/httpd/tasks/html.yml never got the copy of services like the other common files, so that is why power_off.php is not there.

the intended url is /common/services

@holta
Copy link
Member Author

holta commented Jul 20, 2017

FYI http://box/services/power_off.php is what I shipped to Guatemala & Peru (earlier today).

If http://box/common/services/power_off.php is definitely the official+working method going forward, someone just reconfirm (and I'll change the documentation).

@tim-moody
Copy link
Contributor

actually master looks right, so maybe this is the back port to 6.3 that's the problem

@holta
Copy link
Member Author

holta commented Aug 27, 2017

Let's declare http://box/common/services/power_off.php the official POWEROFF button going forward. It's an awful long URL but few will notice and it'll do :-)

@holta holta closed this as completed Aug 27, 2017
@holta
Copy link
Member Author

holta commented Sep 2, 2017

Ref #57

holta added a commit that referenced this issue Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants