Closed chienb closed 8 years ago
Hi,
What is your BASH version ?
What is the result of this command:
plowmod -v3 --no-color -i
GNU bash, version 4.2.46(1)-release (x86_64-redhat-linux-gnu)
plowmod: adding legacy (default) repository: https://github.com/mcrapet/plowshare-modules-legacy.git
dbg: modules directory: /root/.config/plowshare/modules.d
- installing new directory: /root/.config/plowshare/modules.d/legacy.git
ERROR: directory exists but it does not appear to be a git repository, abort
Using plowshare as root is usually a bad idea (for security).
Do this:
rm -f /root/.config/plowshare/modules.d
plowmod -v3 --no-color -i
[root@filesparq ~]# rm -f /root/.config/plowshare/modules.d
rm: cannot remove ‘/root/.config/plowshare/modules.d’: Is a directory
Sorry it's rm -rf /root/.config/plowshare/modules.d
plowmod: adding legacy (default) repository: https://github.com/mcrapet/plowshare-modules-legacy.git
dbg: modules directory: /root/.config/plowshare/modules.d
- installing new directory: /root/.config/plowshare/modules.d/legacy.git
What's the result of:
plowmod --no-color -v3 -s
Plowshare should work, for example:
plowdown --no-color -v3 --modules
Plowdown works, outputs a list of filehosts.
However for plowmod --no-color -v3 -s
dbg: modules directory: /root/.config/plowshare/modules.d
grep: /usr/share/plowshare/modules\/config: No such file or directory
grep: /root/.config/plowshare/modules.d/legacy.git\/config: No such file or directory
-------------------------------------------------------------------------------
Your plowshare installation has currently no module.
(/root/.config/plowshare/modules.d/ is empty)
In order to use plowdown you must install some modules. Here is a quick start:
$ plowmod --install
This is a Bash issue!
On Bash 4.3.42:
$ declare -a ARR=(a b c) $ echo "${ARR[@]}" a b c $ echo "${ARR[@]/%/\/end}" a/end b/end c/end
On Bash 4.2.37:
$ declare -a ARR=(a b c) $ echo "${ARR[@]}" a b c $ echo "${ARR[@]/%/\/end}" a\/end b\/end c\/end
Thanks for reporting, I'll fix it!
Issue was only in plowmod. You can update your Plowshare sources (git repository) to have the fix.
I'm getting the error below when using plowdown on my server:
Plowmod --status gives me the following:
I SSH into the server to double check and the files and folders are all there so I'm not sure what's going on. I also don't get why it's looking in
/usr/share/httpd/
...