Commit 82fff1f0 authored by Claes Sjofors's avatar Claes Sjofors

pwr_pkg.sh package name with path allowed

parent e00986e7
......@@ -59,7 +59,7 @@ pkg_install_func ()
fi
chmod a+x pkg_unpack.sh
./pkg_unpack.sh
./pkg_unpack.sh $pkg
}
pkg_list_func ()
......
......@@ -527,8 +527,13 @@ void pkg_node::fetchFiles( bool distribute)
ofu <<
"dir=$HOME" << endl <<
"cd /tmp" << endl <<
"if [ \"$1\" == \"\" ]; then" << endl <<
" pkg_name=\"$dir/" << pkg_name << "\"" << endl <<
"else" << endl <<
" pkg_name=$1" << endl <<
"fi" << endl <<
"echo \"-- Unpack package " << pkg_name << "\"" << endl <<
"tar -xzf $dir/" << pkg_name << endl <<
"tar -xzf $pkg_name" << endl <<
"echo \"-- Move files to target directories\"" << endl <<
"if [ ! -e $dir/.ssh ]; then" << endl <<
" mkdir $dir/.ssh" << endl <<
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment