unlimitted hosting packages

This commit is contained in:
Serghey Rodin 2015-02-17 18:25:50 +02:00
commit 61288a2355
6 changed files with 108 additions and 41 deletions

View file

@ -19,7 +19,7 @@ source $VESTA/func/main.sh
json_list_pkgs() {
echo '{'
fileds_count=$(echo "$fields" | wc -w)
for package in $(ls -t $VESTA/data/packages); do
for package in $(ls -t $VESTA/data/packages |grep .pkg); do
PACKAGE=${package/.pkg/}
pkg_data=$(cat $VESTA/data/packages/$package)
eval $pkg_data
@ -51,7 +51,7 @@ json_list_pkgs() {
# Shell fnction
shell_list_pkgs() {
for package in $(ls -t $VESTA/data/packages); do
for package in $(ls -t $VESTA/data/packages |grep .pkg); do
PACKAGE=${package/.pkg/}
pkg_descr=$(cat $VESTA/data/packages/$package)
eval $pkg_descr