Fix -rest package %post script

Signed-off-by: Gris Ge <cnfourt@gmail.com>