New domain options and properties for Debian Bookworm #1

Closed
hsh-timotheuspokorra wants to merge 41 commits from TP-202311-vhost-bookworm into rel_4.0
Showing only changes of commit d95ebd4957 - Show all commits

View File

@ -1,12 +1,21 @@
ALTER TABLE domain ALTER TABLE domain
ADD COLUMN passenger_python character varying(256) NULL, ADD COLUMN passenger_python character varying(256) DEFAULT '/usr/bin/python3',
ADD COLUMN passenger_nodejs character varying(256) NULL, ADD COLUMN passenger_nodejs character varying(256) DEFAULT '/usr/bin/node',
ADD COLUMN passenger_ruby character varying(256) NULL, ADD COLUMN passenger_ruby character varying(256) DEFAULT '/usr/bin/ruby',
ADD COLUMN fcgi_php_bin character varying(256) NULL; ADD COLUMN fcgi_php_bin character varying(256) DEFAULT '/usr/lib/cgi-bin/php';
UPDATE domain SET fcgi_php_bin = '/usr/lib/cgi-bin/php7.4';
INSERT INTO domain_option (domain_option_name) VALUES INSERT INTO domain_option (domain_option_name) VALUES
('passenger'), ('passenger'),
('passengerfriendlyerrorpages'), ('passengerfriendlyerrorpages'),
('cgi'), ('cgi'),
('fastcgi'); ('fastcgi');
INSERT INTO domain__domain_option ( domain_option_id, domain_id )
SELECT ( SELECT domain_option_id FROM domain_option WHERE domain_option_name='cgi' ), domain_id FROM domain;
INSERT INTO domain__domain_option ( domain_option_id, domain_id )
SELECT ( SELECT domain_option_id FROM domain_option WHERE domain_option_name='fastcgi' ), domain_id FROM domain;
INSERT INTO domain__domain_option ( domain_option_id, domain_id )
SELECT ( SELECT domain_option_id FROM domain_option WHERE domain_option_name='passenger' ), domain_id FROM domain;