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

polypy init site does not create directory and firmware on brand new site #37

Open
mjmunger opened this issue Sep 23, 2020 · 2 comments

Comments

@mjmunger
Copy link
Owner

When using polypy site init <site> <model>, it should be able to create a site and populate the firmware. Right now, it just crashses.

root@pbx:~/clients/org.example# polypy site init org.example SPIP670
Traceback (most recent call last):
  File "/usr/local/bin/polypy", line 35, in <module>
    polypy.run()
  File "/usr/src/PolyPyTools/poly_py_tools/polypy.py", line 45, in run
    site.run()
  File "/usr/src/PolyPyTools/poly_py_tools/site/site.py", line 61, in run
    runner.run()
  File "/usr/src/PolyPyTools/poly_py_tools/site/site_configurator.py", line 17, in run
    self.init()
  File "/usr/src/PolyPyTools/poly_py_tools/site/site_configurator.py", line 30, in init
    for file in os.listdir(source_dir):
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/html/io.hph.pbx/p/org.example/firmware/4.0.15.1009/Config'
@mjmunger
Copy link
Owner Author

The temporary workaround (and possibly solution once added to code) is:

cd /var/www/html/io.foo.pbx/org.example/
ln -s ../firmware/

@mjmunger
Copy link
Owner Author

perhaps add --firmware-symlink=/path/to/firmware/ as an option...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant