mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
standardize apt-get
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
apt-get update
|
||||||
@@ -2,20 +2,20 @@
|
|||||||
|
|
||||||
# Install ZSH
|
# Install ZSH
|
||||||
echo "**** Installing zsh ****"
|
echo "**** Installing zsh ****"
|
||||||
apt-get update && apt-get install -y \
|
apt-get install -y \
|
||||||
zsh
|
zsh
|
||||||
|
|
||||||
# Install oh-my-zsh if not installed already
|
# Install oh-my-zsh if not installed already
|
||||||
if [ -d /config/.oh-my-zsh ]; then
|
if [ -d /config/.oh-my-zsh ]; then
|
||||||
echo "**** Oh My Zsh is already installed. You can update it via \"omz update\" in terminal. ****"
|
echo "**** Oh My Zsh is already installed. You can update it via \"omz update\" in terminal. ****"
|
||||||
elif [ -d /.oh-my-zsh ]; then
|
elif [ -d /.oh-my-zsh ]; then
|
||||||
echo "**** Installing Oh My Zsh. You can update it via \"omz update\" in terminal. ****"
|
echo "**** Installing Oh My Zsh. You can update it via \"omz update\" in terminal. ****"
|
||||||
mv /.oh-my-zsh /config/.oh-my-zsh
|
mv /.oh-my-zsh /config/.oh-my-zsh
|
||||||
cp /config/.oh-my-zsh/templates/zshrc.zsh-template /config/.zshrc
|
cp /config/.oh-my-zsh/templates/zshrc.zsh-template /config/.zshrc
|
||||||
else
|
else
|
||||||
echo "**** It looks like Oh My Zsh was manually deleted after install. Please recreate the code-server container to reinstall Oh My Zsh. ****"
|
echo "**** It looks like Oh My Zsh was manually deleted after install. Please recreate the code-server container to reinstall Oh My Zsh. ****"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
/config/.oh-my-zsh \
|
/config/.oh-my-zsh \
|
||||||
/config/.zshrc
|
/config/.zshrc
|
||||||
|
|||||||
Reference in New Issue
Block a user