echo -e ${Yellow}"[+] Latest config files are stored in : ${BYellow}${updated_config}${Yellow}" ${Color_Off}
echo -e ${Purple}"[*] To use latest config files, rename ${BPurple}${updated_config}${Purple} to ${BPurple}${current_config}${Purple}\n" ${Color_Off}
else
echo -e ${Red}"[!] Failed to install latest configuration files!\n" ${Color_Off}
fi
}
## -----------------------------------
## Main
run_main() {
if [[ "$user_group" == 'liveuser' ]]; then
exit
else
if [[ ! -d "$current_config" ]]; then
install_wm_config
else
update_wm_config
fi
fi
}
post_install() {
run_main
}
post_upgrade() {
run_main
}
post_remove() {
if [[ -d "$current_config" ]]; then
echo -e ${Red}"\n[*] Config files for ${BYellow}${wm_name}${Red} are still available in : ${BGreen}${current_config}${Red} directory. If you want to remove them, Do it manually.\n" ${Color_Off}