2020-02-12 00:51:13 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
xxh_home_realpath=`realpath _xxh_home_`
|
2020-02-14 21:07:21 +00:00
|
|
|
mkdir -p $xxh_home_realpath $xxh_home_realpath/plugins
|
2020-02-12 00:51:13 +00:00
|
|
|
|
|
|
|
settings_path=$xxh_home_realpath/settings.py
|
|
|
|
xxh_version=`[ "$(ls -A $xxh_home_realpath)" ] && echo "0" || echo "-1"`
|
|
|
|
if [[ -f $settings_path ]]; then
|
|
|
|
xxh_version=`cat $settings_path | grep XXH_VERSION | sed -e "s/.*: '\(.*\)'/\\1/g"`
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo xxh_home_realpath=$xxh_home_realpath
|
|
|
|
echo xxh_version=$xxh_version
|
2020-02-14 21:07:21 +00:00
|
|
|
echo xxh_home_freespace=`df -k --output=avail $xxh_home_realpath | tail -n1`
|
|
|
|
echo xxh_plugins_rc=`find $xxh_home_realpath/plugins | grep xonshrc.xsh`
|
|
|
|
|
2020-02-12 19:10:48 +00:00
|
|
|
echo bash=`command -v bash`
|
|
|
|
echo rsync=`command -v rsync`
|
2020-02-13 19:16:03 +00:00
|
|
|
echo scp=`command -v scp`
|