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 () ...@@ -59,7 +59,7 @@ pkg_install_func ()
fi fi
chmod a+x pkg_unpack.sh chmod a+x pkg_unpack.sh
./pkg_unpack.sh ./pkg_unpack.sh $pkg
} }
pkg_list_func () pkg_list_func ()
......
...@@ -527,8 +527,13 @@ void pkg_node::fetchFiles( bool distribute) ...@@ -527,8 +527,13 @@ void pkg_node::fetchFiles( bool distribute)
ofu << ofu <<
"dir=$HOME" << endl << "dir=$HOME" << endl <<
"cd /tmp" << 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 << "echo \"-- Unpack package " << pkg_name << "\"" << endl <<
"tar -xzf $dir/" << pkg_name << endl << "tar -xzf $pkg_name" << endl <<
"echo \"-- Move files to target directories\"" << endl << "echo \"-- Move files to target directories\"" << endl <<
"if [ ! -e $dir/.ssh ]; then" << endl << "if [ ! -e $dir/.ssh ]; then" << endl <<
" mkdir $dir/.ssh" << 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