Skip to content

Commit

Permalink
Update and rename i3.sh to i4.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
xpanel-cp committed Oct 1, 2023
1 parent 925f88b commit 541eaaa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions i3.sh → i4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,10 @@ wait
sudo sed -i '/apache/d' /etc/sudoers &
wait
ENV_FILE="/var/www/html/app/.env"
COPY_FILE="/var/www/html/app/.env_copy"
COPY_FILE="/var/www/html/app/.env.example"
if [ -f "$ENV_FILE" ]; then
cp "$ENV_FILE" "$COPY_FILE"
chmod 644 /var/www/html/app/.env.example
fi

if command -v apt-get >/dev/null; then
Expand Down Expand Up @@ -513,7 +514,7 @@ DEFAULT_DAY=active
DEFAULT_PORT_DROPBEAR=2083
DEFAULT_TRAFFIC_BASE=12

if [ -f /var/www/html/app/.env_copy ]; then
if [ -f /var/www/html/app/.env.example ]; then
while IFS= read -r line; do
key=$(echo "$line" | awk -F'=' '{print $1}')
value=$(echo "$line" | awk -F'=' '{print $2}')
Expand All @@ -533,7 +534,7 @@ if [ -f /var/www/html/app/.env_copy ]; then
elif [ "$key" = "TRAFFIC_BASE" ]; then
TRAFFIC_BASE="$value"
fi
done < /var/www/html/app/.env_copy
done < /var/www/html/app/.env.example
fi

APP_LOCALE="${APP_LOCALE:-$DEFAULT_APP_LOCALE}"
Expand Down

0 comments on commit 541eaaa

Please sign in to comment.