commit
This commit is contained in:
parent
45d839893b
commit
5728075542
@ -1,7 +1,7 @@
|
|||||||
Summary: Install LALIS configuration
|
Summary: Install LALIS configuration
|
||||||
Name: lalis-config
|
Name: lalis-config
|
||||||
Version: 1
|
Version: 2
|
||||||
Release: %mkrel 3
|
Release: %mkrel 1
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
Group: Tools
|
Group: Tools
|
||||||
Url: http://lalis.fr
|
Url: http://lalis.fr
|
||||||
@ -12,7 +12,7 @@ Source3: Lalis.desktop
|
|||||||
Source4: identMM.pl
|
Source4: identMM.pl
|
||||||
Source5: test.desktop
|
Source5: test.desktop
|
||||||
Source6: checklist.txt
|
Source6: checklist.txt
|
||||||
Source8: ssh_id_rsa
|
Source8: ssh_id_rsa.pub
|
||||||
Source9: RPM-GPG-KEY-Lalis
|
Source9: RPM-GPG-KEY-Lalis
|
||||||
Source10: lalis-i586.repo
|
Source10: lalis-i586.repo
|
||||||
Source11: lalis-i586-source.repo
|
Source11: lalis-i586-source.repo
|
||||||
@ -63,7 +63,6 @@ cp %{SOURCE13} %{buildroot}%{_sysconfdir}/yum.repos.d/
|
|||||||
%post
|
%post
|
||||||
# configuration de l'assistance à distance
|
# configuration de l'assistance à distance
|
||||||
# trouve le nom du dossier de bureau
|
# trouve le nom du dossier de bureau
|
||||||
|
|
||||||
desktop()
|
desktop()
|
||||||
{
|
{
|
||||||
if [ -f "$1/.config/user-dirs.dirs" ]; then
|
if [ -f "$1/.config/user-dirs.dirs" ]; then
|
||||||
@ -77,13 +76,14 @@ if [ $1 -eq 1 ];then
|
|||||||
# crée un utilisateur Lalis et enlève les droits de lecture/écriture/visibilité/exécution à others
|
# crée un utilisateur Lalis et enlève les droits de lecture/écriture/visibilité/exécution à others
|
||||||
cp -f /usr/share/lalis/journald.conf /etc/systemd/
|
cp -f /usr/share/lalis/journald.conf /etc/systemd/
|
||||||
getent passwd lalis
|
getent passwd lalis
|
||||||
|
|
||||||
if [ ${?} -ne 0 ]; then
|
if [ ${?} -ne 0 ]; then
|
||||||
adduser lalis
|
adduser lalis
|
||||||
chmod -R o-rwX /home/lalis
|
chmod -R o-rwX /home/lalis
|
||||||
passwd lalis << EOF
|
passwd lalis << EOF
|
||||||
Lalis
|
Lalis
|
||||||
Lalis
|
Lalis
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ajoute l'utilisateur lalis à la liste des utilisateurs autorisés à se connecter en ssh
|
# Ajoute l'utilisateur lalis à la liste des utilisateurs autorisés à se connecter en ssh
|
||||||
@ -92,7 +92,7 @@ if [ $1 -eq 1 ];then
|
|||||||
if [ -z "`grep -i allowusers /etc/ssh/sshd_config`" ]; then
|
if [ -z "`grep -i allowusers /etc/ssh/sshd_config`" ]; then
|
||||||
echo "Allowusers lalis" >>/etc/ssh/sshd_config
|
echo "Allowusers lalis" >>/etc/ssh/sshd_config
|
||||||
else
|
else
|
||||||
sed -i -e 's/^Allowusers.*$/& lalis/g' /etc/ssh/sshd_config
|
sed -i -e 's/^Allowusers.*/& lalis/g' /etc/ssh/sshd_config
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "relance sshd"
|
echo "relance sshd"
|
||||||
@ -157,6 +157,7 @@ if [ $1 -eq 1 ];then
|
|||||||
echo "urpmi.update lalis" | at now +1 minutes
|
echo "urpmi.update lalis" | at now +1 minutes
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
echo "post end"
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
|
||||||
|
1
mockdt.cfg
Normal file
1
mockdt.cfg
Normal file
@ -0,0 +1 @@
|
|||||||
|
NOARCH=1
|
Reference in New Issue
Block a user