Commit bd228875 authored by claes's avatar claes

rpmbuild can't coop with the databases, they are loaded from the .wb_dmp files instead

parent 4ffadc1f
......@@ -79,6 +79,14 @@ cat > $initsh <<EOF
source $aroot/db/pwr_setup.sh
source \$pwr_exe/pwrp_env.sh set project pwrdemo%{ver}
if [ ! -e "\$pwrp_db/directory.db" ]; then
wb_cmd create volume/directory
wb_cmd wb load /load=\"\$pwrp_db/directory.wb_dmp\"
fi
if [ ! -e "\$pwrp_db/volpwrdemo.db" ]; then
wb_cmd wb load /load=\"\$pwrp_db/volpwrdemo.wb_dmp\"
fi
wb_cmd @$initpwrc
EOF
......@@ -100,7 +108,6 @@ sudo -u pwrp $initsh
rm $initsh
rm $initpwrc
ls
%preun
......
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