workaround for sudo issue

This commit is contained in:
Aliberk Sandıkçı 2023-10-23 17:16:04 +03:00
parent 95b0e1090e
commit b520da128e
Signed by: asandikci
GPG Key ID: 25C67A03B5666BC1
4 changed files with 20 additions and 10 deletions

View File

@ -30,4 +30,6 @@ wget -qO- https://raw.githubusercontent.com/asandikci/iflbot-setup/main/install.
- [ ] Auto login bot user
- [ ] Disable annoying bell sound (in each restart)
- [ ] ISSUE: mix 2 config file and resolve sudo issue
- [ ] End-of-life after [LabManage](https://git.aliberksandikci.com.tr/asandikci/labmanage) application ready-to-use (WIP/private for now)

View File

@ -195,12 +195,19 @@ _install() {
_log "Uygulamalar Yüklendi" info
fi
fi
if [ -f "$src_dir/config.sh" ]; then
if [ -f "$src_dir/user-config.sh" ]; then
_log "Sistemi ayarlamak için ilgili yapılandırmaları yapmak istiyor musunuz?"
if _checkanswer -eq 1; then
_log "Yapılandırmalar Uygulanıyor..." verbose
_sudo bash "$src_dir/config.sh"
_log "Yapılandırmalar Uygulandı" info
_log "Kullanıcı Yapılandırmaları (sudo gerektirmeyen) Uygulanıyor..." verbose
_sudo bash "$src_dir/user-config.sh"
_log "Kullanıcı Yapılandırmaları (sudo gerektirmeyen) Uygulandı..." info
sleep 1
_log "Root Yapılandırmaları Uygulanıyor..." verbose
_sudo bash "$src_dir/root-config.sh"
_log "Root Yapılandırmaları Uygulandı..." verbose
fi
fi
if [ -f "$src_dir/system-refresh.sh" ]; then

4
src/root-config.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# root configs
# NOT IPLEMENTED YET, see ./../README.md

View File

@ -1,12 +1,9 @@
#!/bin/bash
# general configs
# NOT IPLEMENTED YET, see ./../README.md
### SUBLIME BUILDS
### XFCE SETTINGS
xfconf-query -c "xsettings" -p "/Net/ThemeName" -s "pardus-xfce-dark" --type "string" --create
xfconf-query -c "xfwm4" -p "/general/theme" -s "pardus-xfce-dark" --type "string" --create
xfconf-query -c "xsettings" -p "/Net/IconThemeName" -s "pardus-xfce-dark" --type "string" --create
xfconf-query -c "xsettings" -p "/Net/IconThemeName" -s "pardus-xfce-dark" --type "string" --create
### SUBLIME BUILDS