Rpm: group kasmvnc -> kasmvnc-cert

I feel it'd be confusing to use kasmvnc group to provide access to the
TSL certificate. Groups like that control whether you can run software,
e.g. "docker" group. Using "-cert" clearly shows it's just for
certificate access. Not unlide ssl-cert group in Debian.
This commit is contained in:
Dmitry Maksyoma 2021-02-22 22:28:30 +13:00
parent 969c64ced3
commit ece969fd05
3 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ RUN yum localinstall -y /tmp/*.rpm
### END CUSTOM STUFF ### ### END CUSTOM STUFF ###
RUN chown -R 1000:0 $HOME RUN chown -R 1000:0 $HOME
USER 1000:kasmvnc USER 1000:kasmvnc-cert
WORKDIR $HOME WORKDIR $HOME
RUN mkdir ~/.vnc && echo '/usr/bin/xfce4-session &' >> ~/.vnc/xstartup && \ RUN mkdir ~/.vnc && echo '/usr/bin/xfce4-session &' >> ~/.vnc/xstartup && \

View File

@ -55,7 +55,7 @@ RUN dnf localinstall -y --allowerasing /tmp/*.rpm
### END CUSTOM STUFF ### ### END CUSTOM STUFF ###
RUN chown -R 1000:0 $HOME RUN chown -R 1000:0 $HOME
USER 1000:kasmvnc USER 1000:kasmvnc-cert
WORKDIR $HOME WORKDIR $HOME
RUN mkdir ~/.vnc && echo '/usr/bin/lxsession -s LXDE &' >> ~/.vnc/xstartup && \ RUN mkdir ~/.vnc && echo '/usr/bin/lxsession -s LXDE &' >> ~/.vnc/xstartup && \

View File

@ -24,7 +24,7 @@ cd $RPM_BUILD_ROOT/usr/bin && mv Xkasmvnc Xvnc && \
ln -s kasmvncpasswd vncpasswd ln -s kasmvncpasswd vncpasswd
cd $RPM_BUILD_ROOT/usr/share/man/man1 && mv Xkasmvnc.1 Xvnc.1 && \ cd $RPM_BUILD_ROOT/usr/share/man/man1 && mv Xkasmvnc.1 Xvnc.1 && \
mv kasmvncserver.1 vncserver.1 && mv kasmvncconfig.1 vncconfig.1 && \ mv kasmvncserver.1 vncserver.1 && mv kasmvncconfig.1 vncconfig.1 && \
mv kasmvncpasswd.1 vncpasswd.1 cp kasmvncpasswd.1 vncpasswd.1
%files %files
/usr/bin/* /usr/bin/*
@ -39,7 +39,7 @@ cd $RPM_BUILD_ROOT/usr/share/man/man1 && mv Xkasmvnc.1 Xvnc.1 && \
- Initial release of the rpm package. - Initial release of the rpm package.
%post %post
kasmvnc_group="kasmvnc" kasmvnc_group="kasmvnc-cert"
create_kasmvnc_group() { create_kasmvnc_group() {
if ! getent group "$kasmvnc_group" >/dev/null; then if ! getent group "$kasmvnc_group" >/dev/null; then