This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Removing Files"; | |
rm -rf /home/dev.domain.com/public_html/* | |
echo "Copying Files"; | |
cp -rT /home/domain.com/public_html /home/dev.domain.com/public_html | |
echo "Ownership"; | |
chown -R dev.domain.com:dev.domain.com /home/dev.domain.com/public_html/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync --progress --group --owner --recursive --perms --times /mnt/volume_lon1_01/* /home/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
doms=`virtualmin list-domains --name-only` | |
for dom in $doms; do | |
virtualmin modify-domain --domain $dom --disable-jail; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'/var/cpanel/userdata/USERNAME/DOMAIN.COM' | |
documentroot: /home/USERNAME/public_html | |
/scripts/updateuserdomains | |
/scripts/updateuserdatacache | |
mv /etc/apache2/conf/httpd.conf{,.bk} | |
/scripts/rebuildhttpdconf | |
/scripts/restartsrv_httpd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ask for cpanel name | |
echo Enter cpanel account name: | |
read accountname | |
service redis-${accountname} stop | |
systemctl disable redis-${accountname} | |
rm -rf /home/${accountname}/.redis/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################### | |
# CONFIG # | |
####################### | |
$COMPOSE_FILE="dev" | |
$PROJECT_NAME = "" | |
####################### | |
# DO NOT TOUCH BELOW ## | |
####################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:8.1-fpm | |
# Update | |
RUN apt-get update -y | |
# Packages | |
RUN apt install -y nano git zip unzip libicu-dev zlib1g-dev libpng-dev libonig-dev curl libzip-dev | |
# PHP Exts | |
RUN docker-php-ext-install exif pdo_mysql intl opcache gd mysqli mbstring bcmath zip pcntl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM djqns_term_relationships | |
WHERE term_taxonomy_id IN (6,7) | |
AND object_id IN ( | |
SELECT id FROM djqns_posts | |
WHERE post_type = 'product' | |
AND post_parent = 0 | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
doms=`virtualmin list-domains --with-feature ssl --name-only` | |
for dom in $doms; do | |
virtualmin generate-letsencrypt-cert --domain $dom | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Update hostname | |
echo "Please provide hostname:" | |
read hostname | |
echo $hostname > /etc/hostname | |
# Public address | |
echo "Please provide public address (ip address or hostname):" | |
read publicAddress |
NewerOlder