Correcting typos and update the install script

This commit is contained in:
Félix Aime 2021-02-11 19:31:53 +01:00
parent 02db459913
commit 7e962bd4f5
4 changed files with 23 additions and 5 deletions

View File

@ -54,7 +54,7 @@
"mac_address": "Adresse MAC :",
"high": "elevee",
"moderate": "moyenne",
"low": "base"
"low": "basse"
},
"wifi-select": {
"already_connected_question": "Vous semblez être connecté à un réseau.<br />Voulez-vous utiliser cette connexion ?",

View File

@ -38,7 +38,7 @@
</div>
<div v-else class="none-wrapper">
<div class="center">
<h1 class="warning-title">{{ $t("report.fine_msg") }}</h1>
<h1 class="warning-title"v-html="$t("report.fine_msg")"></h1>
<button class="btn btn-report-low-light" v-on:click="save_capture()">{{ $t("report.save_capture") }}</button>
<button class="btn btn-report-low" v-on:click="new_capture()">{{ $t("report.start_new_capture") }}</button>
</div>

View File

@ -41,10 +41,10 @@ backend:
frontend:
shutdown_option: false
reboot_option: false
quit_option: true
quit_option: quitoption
download_links: false
hide_mouse: false
kiosk_mode: false
hide_mouse: hidemouse
kiosk_mode: kioskmode
remote_access: true
sparklines: true
virtual_keyboard: true

View File

@ -80,6 +80,23 @@ set_credentials() {
fi
}
set_kioskmode() {
echo -n " [?] Do you want to start TinyCheck in fullscreen during the system startup (Kiosk mode)? [Yes/No] "
read answer
if [[ "$answer" =~ ^([yY][eE][sS]|[yY])$ ]]
then
sed -i "s/kioskmode/true/g" /usr/share/tinycheck/config.yaml
sed -i "s/hidemouse/true/g" /usr/share/tinycheck/config.yaml
sed -i "s/quitoption/true/g" /usr/share/tinycheck/config.yaml
echo -e "\e[92m [✔] TinyCheck setted in Kiosk mode\e[39m"
else
sed -i "s/kioskmode/false/g" /usr/share/tinycheck/config.yaml
sed -i "s/hidemouse/false/g" /usr/share/tinycheck/config.yaml
sed -i "s/quitoption/false/g" /usr/share/tinycheck/config.yaml
echo -e "\e[92m [✔] TinyCheck setted in default mode, use the desktop icon to launch it.\e[39m"
fi
}
create_directory() {
# Create the TinyCheck directory and move the whole stuff there.
echo -e "[+] Creating TinyCheck folder under /usr/share/"
@ -424,6 +441,7 @@ elif [[ -f /usr/share/tinycheck/config.yaml ]]; then
exit 1
else
welcome_screen
set_kioskmode
check_operating_system
check_interfaces
create_directory