cannot install in another folder #65

Closed
opened 2021-01-29 04:42:05 +01:00 by tjengbudi · 10 comments
tjengbudi commented 2021-01-29 04:42:05 +01:00 (Migrated from github.com)

looks like it cannot change to another folder than home directory.
is there any hard coded home path besides in kiauh.sh?

i try to install in folder "installer" cause it will make my folder clean and not make confused.

looks like it cannot change to another folder than home directory. is there any hard coded home path besides in kiauh.sh? i try to install in folder "installer" cause it will make my folder clean and not make confused.
dw-0 commented 2021-01-29 14:01:36 +01:00 (Migrated from github.com)

It depends where you clone KIAUH into. You aren't forced to clone KIAUH in the home directory.
It should work in any directory or subdirectory you clone it into.
Or do you experience issues? If yes, please provide error messages.

It depends where you clone KIAUH into. You aren't forced to clone KIAUH in the home directory. It should work in any directory or subdirectory you clone it into. Or do you experience issues? If yes, please provide error messages.
tjengbudi commented 2021-01-30 09:19:48 +01:00 (Migrated from github.com)

yes i mean clone into another directory than home. i can clone the repository in another folder. but the script cannot work. cause it seeking in HOME directory.

i try with create folder ".kiauh" and failed. and then trying again with folder "installer"

the error after cloning and execute the script is like below

/home/octoprint/installer/kiauh/scripts/status.sh: line 3: cd: /home/octoprint/kiauh: No such file or directory
octoprint@HomeAssistant:~/installer/kiauh$


yes i mean clone into another directory than home. i can clone the repository in another folder. but the script cannot work. cause it seeking in HOME directory. i try with create folder ".kiauh" and failed. and then trying again with folder "installer" the error after cloning and execute the script is like below ``` /home/octoprint/installer/kiauh/scripts/status.sh: line 3: cd: /home/octoprint/kiauh: No such file or directory octoprint@HomeAssistant:~/installer/kiauh$ ```
dw-0 commented 2021-01-31 09:14:18 +01:00 (Migrated from github.com)

You are right. There is a hardcoded ${HOME} in the code. Thanks for pointing that out, i will fix the issue and check the script if there are any other spots where i made the same mistake.

You are right. There is a hardcoded ${HOME} in the code. Thanks for pointing that out, i will fix the issue and check the script if there are any other spots where i made the same mistake.
tjengbudi commented 2021-01-31 17:43:37 +01:00 (Migrated from github.com)

emm it is a little weird. i run the kiauh.sh in the separeted folder (let's say in the "installer" folder) and it is force to create the installation in the home root directory instead in the installer directory?

emm it is a little weird. i run the kiauh.sh in the separeted folder (let's say in the "installer" folder) and it is force to create the installation in the home root directory instead in the installer directory?
dw-0 commented 2021-01-31 17:47:46 +01:00 (Migrated from github.com)

What installation are you talking about now exactly?
Klipper?

What installation are you talking about now exactly? Klipper?
tjengbudi commented 2021-01-31 18:02:48 +01:00 (Migrated from github.com)

sorry to make you confused about this...

i will told you what i have do

  1. i create folder "simple"
  2. make simple as active directory with "cd simple"
  3. do "git clone https://github.com/th33xitus/kiauh.git"
  4. and "./kiauh/kiauh.sh"

the installation of the klipper, moonraker, and fluidd (cause i install fluidd only) is in the home directory. (/home/octoprint/ in my case), when it supposed need to install in the simple directory (/home/octoprint/simple)

that's why i ask you, are this script force to install in the home directory? i already tried your newest project. it still force install the klipper, moonraker and the fluid in the home directory.

sorry for my bad english, install might means where you save the klipper, moonraker and fluid code

sorry to make you confused about this... i will told you what i have do 1. i create folder "simple" 2. make simple as active directory with "cd simple" 3. do "git clone https://github.com/th33xitus/kiauh.git" 4. and "./kiauh/kiauh.sh" the installation of the klipper, moonraker, and fluidd (cause i install fluidd only) is in the home directory. (/home/octoprint/ in my case), when it supposed need to install in the simple directory (/home/octoprint/simple) that's why i ask you, are this script force to install in the home directory? i already tried your newest project. it still force install the klipper, moonraker and the fluid in the home directory. sorry for my bad english, install might means where you save the klipper, moonraker and fluid code
dw-0 commented 2021-01-31 18:19:08 +01:00 (Migrated from github.com)

Now i get what you mean. 😄

And yes, klipper, moonraker and fluidd (and everything else) gets installed to the home directory. That is hardcoded and that won't get changed, i'm sorry.

Now i get what you mean. 😄 And yes, klipper, moonraker and fluidd (and everything else) gets installed to the home directory. That is hardcoded and that won't get changed, i'm sorry.
kjkent commented 2023-12-12 19:35:51 +01:00 (Migrated from github.com)

As a feature request and alternative to allowing arbitrary install locations, perhaps KIAUH could respect the XDG Base Directory Specification if the requisite env vars were set. I may fork KIAUH to try to implement this, and would be happy to submit a PR if @dw-0 was open to it.

As a feature request and alternative to allowing arbitrary install locations, perhaps KIAUH could respect the XDG Base Directory Specification if the requisite env vars were set. I may fork KIAUH to try to implement this, and would be happy to submit a PR if @dw-0 was open to it.
dw-0 commented 2023-12-12 20:08:11 +01:00 (Migrated from github.com)

i would like to kinda refrain from using any specification in terms of files or directories to be honest. The issue is almost 3 years old and my view has changed a bit. So IF we allow different installation directories, how about NOT enforcing any specific (base) directory?

as some might have noticed, there is a kiauh rewrite ongoing. at a later stage, i plan to add support for custom installation directories. which should be rather easy to implement afterwards. there is an issue here: https://github.com/dw-0/kiauh/issues/372 that is also added to the milestones already.

i would like to kinda refrain from using any specification in terms of files or directories to be honest. The issue is almost 3 years old and my view has changed a bit. So IF we allow different installation directories, how about NOT enforcing any specific (base) directory? as some might have noticed, there is a kiauh rewrite ongoing. at a later stage, i plan to add support for custom installation directories. which should be rather easy to implement afterwards. there is an issue here: https://github.com/dw-0/kiauh/issues/372 that is also added to the milestones already.
kjkent commented 2023-12-13 11:55:01 +01:00 (Migrated from github.com)

@dw-0 Thanks for the response. Yeah, there's good arguments for not enforcing a particular spec, and taking that approach means folk who want their files in a particular dir (like the XDG_XXXXX_HOME dirs) can do so anyway!

I'll check out the new linked issue, many thanks.

@dw-0 Thanks for the response. Yeah, there's good arguments for not enforcing a particular spec, and taking that approach means folk who want their files in a particular dir (like the XDG_XXXXX_HOME dirs) can do so anyway! I'll check out the new linked issue, many thanks.
Sign in to join this conversation.