Mar2zz / LaSi

LaSi is short for: Lazy admin Scripted Installers. Aim is to create 'easy' walkthrough-installers written in Bash for programs that are not inside official *nix-repo's, but for example only on Github or Googlecode. Main focus is headless servers, right now it supports debian-based systems, freeBSD-deratives (thx to Kriss1981) and bootstrapped Synology NAS devices (thx to Jeroenve)).
mar2zz.tweakblogs.net
GNU General Public License v3.0
60 stars 8 forks source link

Periscope install scripts error #7

Closed Hertog closed 13 years ago

Hertog commented 13 years ago

Hi, I've just installed Periscope with your LaSi.sh script, and when I try to manually run it python is giving me this kind of errors :

OSError: [Errno 2] No such file or directory: 'INSTALLDIR/cache' INFO:periscope:Creating folder INSTALLDIR/cache Traceback (most recent call last): File "/home/download-user/periscope/downloadSub.py", line 13, in subdl = periscope.Periscope(cache_folder="INSTALLDIR/cache") File "/home/download-user/periscope/periscope.py", line 56, in init os.mkdir(folder) OSError: [Errno 2] No such file or directory: 'INSTALLDIR/cache' INFO:periscope:Creating folder INSTALLDIR/cache Traceback (most recent call last): File "/home/download-user/periscope/downloadSub.py", line 13, in subdl = periscope.Periscope(cache_folder="INSTALLDIR/cache") File "/home/download-user/periscope/periscope.py", line 56, in init os.mkdir(folder) OSError: [Errno 2] No such file or directory: 'INSTALLDIR/cache'

To me it seems like an error in your lasi/periscopeinstall.sh, cuz INSTALLDIR is a variable from your lasi/periscopeinstall.sh and after I edited downloadSub.py and changed INSTALLDIR to my installation directory, it worked!

BTW; This is on a Debian stable (squeeze) machine

Mar2zz commented 13 years ago

You are right, did you use the dropbox installfile or this one on github? in dropbox I allready added: mkdir -p $INSTALLDIR/cache to the installation and edited downloadSub.py like this sed -i "s/INSTALLDIR/$INSTALLDIR/g" $INSTALLDIR/$DOWN_SUB, on github not yet

I should sync the other way around github to dropbox instead of dropbox to github :p

Hertog commented 13 years ago

I downloaded the "master" install script (if i can call it that way) from github, and then that script downloaded another script from dropbox.

Mar2zz commented 13 years ago

Allright. Thx for reporting. I fixed it. sed tripped over the use of / because I was editing paths. Using # now instead of / and confirmed it worked. I still need to update github with it, but the dropbox file is up2date now :)