diff --git a/entrypoint.sh b/entrypoint.sh index 66332fb..20e7eeb 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -76,7 +76,11 @@ fi # Find .sh files in /usr/bin/custom-scripts and execute them in order for script in $(find /usr/bin/custom-scripts -name "*.sh" | sort); do chmod +x $script - sudo -u $HOME_USER bash -c "source /etc/environment; sudo $script" + if [[ $script == *"sudo"* ]]; then + sudo -u $HOME_USER bash -c "source /etc/environment; sudo $script" + else + sudo -u $HOME_USER bash -c "source /etc/environment; $script" + fi done # Move the .bashrc file to the user's home directory diff --git a/version.txt b/version.txt index 38be3a7..8479333 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.0.26 \ No newline at end of file +3.0.27 \ No newline at end of file