Description of problem: Update example shell script uses perl syntax, not shell syntax: $ sh /usr/share/dirsrv/updates/exampleupdate.sh /usr/share/dirsrv/updates/exampleupdate.sh: line 41: my: command not found /usr/share/dirsrv/updates/exampleupdate.sh: line 42: my: command not found /usr/share/dirsrv/updates/exampleupdate.sh: line 43: my: command not found /usr/share/dirsrv/updates/exampleupdate.sh: line 44: my: command not found /usr/share/dirsrv/updates/exampleupdate.sh: line 45: my: command not found Version-Release number of selected component (if applicable): 389-ds-base-1.2.6-0.3.a3.fc12.x86_64
Created attachment 447594 [details] git patch file (master) Description: replacing the perl syntax with the corresponding shell syntax. sh -x /usr/share/dirsrv/updates/exampleupdate.sh + PRE_STAGE=pre + PREINST_STAGE=preinst + RUNINST_STAGE=runinst + POSTINST_STAGE=postinst + POST_STAGE=post + '[' '' '!=' pre ']' + exit 0
Reviewed by Rich one month ago (Thanks! :). Pushed to master. $ git merge work Updating 310c056..501cce2 Fast-forward ldap/admin/src/scripts/exampleupdate.sh | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) $ git push Counting objects: 13, done. Delta compression using up to 4 threads. Compressing objects: 100% (6/6), done. Writing objects: 100% (7/7), 699 bytes, done. Total 7 (delta 5), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git 310c056..501cce2 master -> master
Steps to verify. Install the server. Run the following test script. # sh -x /usr/share/dirsrv/updates/exampleupdate.sh + PRE_STAGE=pre + PREINST_STAGE=preinst + RUNINST_STAGE=runinst + POSTINST_STAGE=postinst + POST_STAGE=post + '[' '' '!=' pre ']' + exit 0 If no syntax errors are issued, this bug is verified.
[root@rhel61 slapd-rhel61]# sh -x /usr/share/dirsrv/updates/exampleupdate.sh + PRE_STAGE=pre + PREINST_STAGE=preinst + RUNINST_STAGE=runinst + POSTINST_STAGE=postinst + POST_STAGE=post + '[' '' '!=' pre ']' + exit 0 thx Noriko, the bug is verified.