Commit 8b93eb056b41ff0084c900314912e51849d0a853

Authored by Antonio Terceiro
1 parent 7b65dc1c

colab: fix colab-admin script

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
specs/colab/colab.spec
1 %define name colab 1 %define name colab
2 %define version 2.0a2 2 %define version 2.0a2
3 %define unmangled_version 2.0a2 3 %define unmangled_version 2.0a2
4 -%define release 2 4 +%define release 7
5 %define buildvenv /var/tmp/%{name}-%{version} 5 %define buildvenv /var/tmp/%{name}-%{version}
6 6
7 Summary: Collaboration platform for communities 7 Summary: Collaboration platform for communities
@@ -54,7 +54,7 @@ cat > %{buildroot}/%{_bindir}/colab-admin <<EOF @@ -54,7 +54,7 @@ cat > %{buildroot}/%{_bindir}/colab-admin <<EOF
54 #!/bin/sh 54 #!/bin/sh
55 set -e 55 set -e
56 56
57 -if [ "$USER" = colab ]; then 57 +if [ "\$USER" = colab ]; then
58 exec /usr/lib/colab/bin/colab-admin "\$@" 58 exec /usr/lib/colab/bin/colab-admin "\$@"
59 else 59 else
60 exec sudo -u colab /usr/lib/colab/bin/colab-admin "\$@" 60 exec sudo -u colab /usr/lib/colab/bin/colab-admin "\$@"