Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
fix new temp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed May 21, 2019
1 parent a991b94 commit 12190ef
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions rootfs/sysprepz/admin/bin/my-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ cd /etc/init.d/
./apache2 start
./mysql start

# delete old php-fpm running file on restart
rm -f /var/run/vesta*.sock
rm -f /var/run/vesta*.pid
rm -f /var/run/nginx.pid

# delete defult postgres admindb if not use, then comment out the line below
./postgresql start
./nginx start
Expand Down
3 changes: 2 additions & 1 deletion rootfs/sysprepz/apache2-templates/php71fpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ echo "$fpm_conf" > $fpm_conf_file
chown $user:$user $fpm_conf_file
chmod -f 751 $fpm_conf_file
mkdir -p /home/$user/web/$domain/tmp/cache
rm -rf /home/$user/web/$domain/tmp/cache
rm -rf /home/$user/web/$domain/tmp/*
chown $user:$user /home/$user/web/$domain/tmp
mkdir -p /home/$user/web/$domain/tmp/cache
chown -R www-data:www-data /home/$user/web/$domain/tmp/cache

Expand Down
3 changes: 2 additions & 1 deletion rootfs/sysprepz/apache2-templates/php72fpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ echo "$fpm_conf" > $fpm_conf_file
chown $user:$user $fpm_conf_file
chmod -f 751 $fpm_conf_file
mkdir -p /home/$user/web/$domain/tmp/cache
rm -rf /home/$user/web/$domain/tmp/cache
rm -rf /home/$user/web/$domain/tmp/*
chown $user:$user /home/$user/web/$domain/tmp
mkdir -p /home/$user/web/$domain/tmp/cache
chown -R www-data:www-data /home/$user/web/$domain/tmp/cache

Expand Down
3 changes: 2 additions & 1 deletion rootfs/sysprepz/apache2-templates/php73fpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ echo "$fpm_conf" > $fpm_conf_file
chown $user:$user $fpm_conf_file
chmod -f 751 $fpm_conf_file
mkdir -p /home/$user/web/$domain/tmp/cache
rm -rf /home/$user/web/$domain/tmp/cache
rm -rf /home/$user/web/$domain/tmp/*
chown $user:$user /home/$user/web/$domain/tmp
mkdir -p /home/$user/web/$domain/tmp/cache
chown -R www-data:www-data /home/$user/web/$domain/tmp/cache

Expand Down

0 comments on commit 12190ef

Please sign in to comment.