Commit 06ca8f34 authored by Lior Spach's avatar Lior Spach

le-italc-config: Refs #1372 New generate function for monoterminal

-->Changes:
*Change permission of postrm (to the right one -> 755)
*Change version, published new package on testing
*New function added to le-italc-config
Signed-off-by: Lior Spach's avatarLior Spach <ls12@inf.ufpr.br>
parent 417353d8
Package: le-italc-config
Version: 0.0.4
Version: 0.0.6
Description: Italc Auto Configuration Tool for Linux Educacional
Priority: optional
Section: misc
......
File mode changed from 100644 to 100755
......@@ -81,7 +81,15 @@ zenity --question --title="Configurador do Italc" \
##---PROCESS RESULTS---------------------------------------------
generate_script () {
generate_script_monoterminal_client () {
local g_file="/etc/lightdm/greeter-exec-scripts/ica-auto-starter.sh"
echo "#!/bin/sh" > $g_file
echo "ica &" >> $g_file
chmod +x $g_file
}
generate_script_multiterminal () {
//Create a script in profile.d
local g_file="/etc/profile.d/ica-start-multiterminal.sh"
......@@ -102,7 +110,7 @@ generate_script () {
echo " ica -port \$PORT &" >> $g_file
echo "fi" >> $g_file
chmod +x /etc/profile.d/ica-start-multiterminal.sh
chmod +x $g_file
}
config_client_monoterminal () {
......@@ -126,6 +134,8 @@ config_client_monoterminal () {
done
imc -importpublickey "$key_file"
chmod 755 /etc/italc/public -R
generate_script_monoterminal_client (); #generate script to autorun ica
}
config_master_monoterminal () {
......@@ -163,7 +173,7 @@ config_master_multiterminal () {
#Release public key
sudo -u $SUDO_USER chmod 755 /etc/italc/keys/public -R
generate_script
generate_script_multiterminal #ica autorun
}
#Call right configuration function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment