mirror of https://github.com/fairyglade/ly.git
use custom pam service name
This commit is contained in:
parent
4a7c82e3e3
commit
8493c5a8ad
3
makefile
3
makefile
|
@ -79,6 +79,7 @@ install: $(BIND)/$(NAME)
|
|||
@install -dZ $(DATADIR)/lang
|
||||
@install -DZ $(RESD)/lang/* -t $(DATADIR)/lang
|
||||
@install -DZ $(RESD)/ly.service -m 644 -t ${DESTDIR}/usr/lib/systemd/system
|
||||
@install -DZ $(RESD)/pam.d/ly -m 644 -t ${DESTDIR}/etc/pam.d
|
||||
|
||||
installnoconf: $(BIND)/$(NAME)
|
||||
@echo "installing without the configuration file"
|
||||
|
@ -89,6 +90,7 @@ installnoconf: $(BIND)/$(NAME)
|
|||
@install -dZ $(DATADIR)/lang
|
||||
@install -DZ $(RESD)/lang/* -t $(DATADIR)/lang
|
||||
@install -DZ $(RESD)/ly.service -m 644 -t ${DESTDIR}/usr/lib/systemd/system
|
||||
@install -DZ $(RESD)/pam.d/ly -m 644 -t ${DESTDIR}/etc/pam.d
|
||||
|
||||
uninstall:
|
||||
@echo "uninstalling"
|
||||
|
@ -96,6 +98,7 @@ uninstall:
|
|||
@rm -rf $(DATADIR)
|
||||
@rm -f ${DESTDIR}/usr/bin/ly
|
||||
@rm -f ${DESTDIR}/usr/lib/systemd/system/ly.service
|
||||
@rm -f ${DESTDIR}/etc/pam.d/ly
|
||||
|
||||
clean:
|
||||
@echo "cleaning"
|
||||
|
|
|
@ -69,8 +69,8 @@
|
|||
# file in which to save and load the default desktop and login
|
||||
#save_file = /etc/ly/save
|
||||
|
||||
# service name (pam needs this set to login)
|
||||
#service_name = login
|
||||
# service name (set to ly to use the provided pam config file)
|
||||
#service_name = ly
|
||||
|
||||
# command executed when pressing F1
|
||||
#shutdown_cmd = /sbin/shutdown -a now
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#%PAM-1.0
|
||||
|
||||
auth include login
|
||||
account include login
|
||||
password include login
|
||||
session include login
|
|
@ -285,7 +285,7 @@ void config_defaults()
|
|||
config.restart_cmd = strdup("/sbin/shutdown -r now");
|
||||
config.save = true;
|
||||
config.save_file = strdup("/etc/ly/save");
|
||||
config.service_name = strdup("login");
|
||||
config.service_name = strdup("ly");
|
||||
config.shutdown_cmd = strdup("/sbin/shutdown -a now");
|
||||
config.term_reset_cmd = strdup("/usr/bin/tput reset");
|
||||
config.tty = 2;
|
||||
|
|
Loading…
Reference in New Issue