mirror of
https://github.com/tomasriveral/vps-config.git
synced 2026-10-02 18:14:28 +02:00
fix icloud .env
This commit is contained in:
1 parent
07d1404be9
commit
444087032b
5 files changed
+24
-15
No files matched your search
+15
-6
@@ -140,16 +140,25 @@ chown "$USERNAME:$USERNAME" \
|
||||
################################################################################
|
||||
|
||||
step "Initializing environment"
|
||||
|
||||
if [ ! -f "/home/$USERNAME/$REPO_DIR/.env" ]; then
|
||||
cp "/home/$USERNAME/$REPO_DIR/.env.example" \
|
||||
"/home/$USERNAME/$REPO_DIR/.env"
|
||||
if [ ! -f "/home/$USERNAME/$REPO_DIR/.flatnotes.env" ]; then
|
||||
cp "/home/$USERNAME/$REPO_DIR/.flatnotes.env.example" \
|
||||
"/home/$USERNAME/$REPO_DIR/.flatnotes.env"
|
||||
|
||||
chown "$USERNAME:$USERNAME" \
|
||||
"/home/$USERNAME/$REPO_DIR/.env"
|
||||
"/home/$USERNAME/$REPO_DIR/.flatnotes.env"
|
||||
|
||||
chmod 600 \
|
||||
"/home/$USERNAME/$REPO_DIR/.env"
|
||||
"/home/$USERNAME/$REPO_DIR/.flatnotes.env"
|
||||
|
||||
if [ ! -f "/home/$USERNAME/$REPO_DIR/.flatnotes.env" ]; then
|
||||
cp "/home/$USERNAME/$REPO_DIR/.flatnotes.env.example" \
|
||||
"/home/$USERNAME/$REPO_DIR/.flatnotes.env"
|
||||
|
||||
chown "$USERNAME:$USERNAME" \
|
||||
"/home/$USERNAME/$REPO_DIR/.flatnotes.env"
|
||||
|
||||
chmod 600 \
|
||||
"/home/$USERNAME/$REPO_DIR/.flatnotes.env"
|
||||
|
||||
cat <<EOF
|
||||
|
||||
|
||||
Reference in new issue
Block a user