mirror of
https://github.com/YunoHost-Apps/linuxdash_ynh.git
synced 2024-09-03 19:36:07 +02:00
11 lines
No EOL
334 B
Bash
Executable file
11 lines
No EOL
334 B
Bash
Executable file
#!/bin/bash
|
|
result=$(whereis php node mysql mongo vim python ruby java apache2 nginx openssl vsftpd make \
|
|
| awk -F: '{if(length($2)==0) { installed="false"; } else { installed="true"; } \
|
|
print \
|
|
"{ \
|
|
\"binary\": \""$1"\", \
|
|
\"location\": \""$2"\", \
|
|
\"installed\": "installed" \
|
|
},"}')
|
|
|
|
echo "[" ${result%?} "]" |