Added share/xcat/netboot/sles/copy_profile.sh.
This script is used to copy all files belonging to one profile (.pkglist .exlist .postinstall .repolist) to another name. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2122 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ac2f90ce64
commit
71d72352fb
20
xCAT-server/share/xcat/netboot/sles/copy_profile.sh
Executable file
20
xCAT-server/share/xcat/netboot/sles/copy_profile.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z $1 -o -z $2 ]; then
|
||||
cat <<END
|
||||
Usage: $0 {source profile} {destination profile}
|
||||
|
||||
END
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source=$1
|
||||
dest=$2
|
||||
|
||||
for ext in exlist pkglist postinstall repolist; do
|
||||
if [ -r $source.$ext ]; then
|
||||
echo cp -b $source.$ext $dest.$ext
|
||||
cp -b $source.$ext $dest.$ext
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user