dont require writing to the home directory

View previous topic View next topic Go down

dont require writing to the home directory

Post  ChronoStriker1 on Thu Dec 13, 2012 11:54 pm

I want to run this on my unraid machine in cli mode as nobody but it looks like the program wants to create a settings file in a home directory. My server does not have real users as its a file server to there is no home directories. I want to be able to have it just look in the directory the app is in or set where the settings file is in the command when run.

ChronoStriker1

Posts : 2
Join date : 2012-12-13

View user profile

Back to top Go down

Re: dont require writing to the home directory

Post  ComicTagger on Fri Dec 14, 2012 2:34 am

Are you running it from a shell?

Can you do something like the following?

Code:
HOME=. comictagger.py --version

The code just tries to use "~", and I am pretty sure that is based on the $HOME environment variable. Give it a shot, and post back.

avatar
ComicTagger
Admin

Posts : 208
Join date : 2012-12-02

View user profile http://comictagger.forumotion.com

Back to top Go down

Re: dont require writing to the home directory

Post  ChronoStriker1 on Fri Dec 14, 2012 3:41 am

That indeed works, just not sure how i can incorporate that into my setup if I use comictagger as part of a script.

ChronoStriker1

Posts : 2
Join date : 2012-12-13

View user profile

Back to top Go down

Re: dont require writing to the home directory

Post  ComicTagger on Fri Dec 14, 2012 12:30 pm

Just set HOME in your script, and you're all set.

Unless I'm missing something...
avatar
ComicTagger
Admin

Posts : 208
Join date : 2012-12-02

View user profile http://comictagger.forumotion.com

Back to top Go down

Re: dont require writing to the home directory

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum