Skip to content

Commit ed3b9b7

Browse files
author
Marius Burkard
committed
Merge branch 'thom/ispconfig3-5795-purge-apps-addons' into develop
2 parents 8f686f1 + f1e4b77 commit ed3b9b7

File tree

176 files changed

+16
-2833
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+16
-2833
lines changed

install/lib/installer_base.lib.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,6 @@ public function grant_master_database_rights($verbose = false) {
683683
if ($verbose){
684684
echo $query ."\n";
685685
}
686-
if(!$this->dbmaster->query($query, $value['db'] . '.software_update_inst', $value['user'], $host)) {
687-
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
688-
}
689686

690687
$query = "GRANT SELECT, UPDATE(`updated`) ON ?? TO ?@?";
691688
if ($verbose){

install/sql/incremental/upd_dev_collection.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ SET SESSION old_alter_table=0;
1111
ALTER TABLE mail_domain ADD COLUMN `relay_host` varchar(255) NOT NULL default '' AFTER `dkim_public`,
1212
ADD COLUMN `relay_user` varchar(255) NOT NULL default '' AFTER `relay_host`,
1313
ADD COLUMN `relay_pass` varchar(255) NOT NULL default '' AFTER `relay_user`;
14+
-- Purge apps & addons installer (#5795)
15+
DROP TABLE 'software_package';
16+
DROP TABLE 'software_repo';
17+
DROP TABLE 'software_update';
18+
DROP TABLE 'software_update_inst';

install/sql/ispconfig3.sql

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,88 +1467,6 @@ CREATE TABLE `shell_user` (
14671467

14681468
-- --------------------------------------------------------
14691469

1470-
--
1471-
-- Table structure for table `software_package`
1472-
--
1473-
1474-
CREATE TABLE `software_package` (
1475-
`package_id` int(11) unsigned NOT NULL auto_increment,
1476-
`software_repo_id` int(11) unsigned NOT NULL DEFAULT '0',
1477-
`package_name` varchar(64) NOT NULL DEFAULT '',
1478-
`package_title` varchar(64) NOT NULL DEFAULT '',
1479-
`package_description` text,
1480-
`package_version` varchar(8) default NULL,
1481-
`package_type` enum('ispconfig','app','web') NOT NULL default 'app',
1482-
`package_installable` enum('yes','no','key') NOT NULL default 'yes',
1483-
`package_requires_db` enum('no','mysql') NOT NULL default 'no',
1484-
`package_remote_functions` text,
1485-
`package_key` varchar(255) NOT NULL DEFAULT '',
1486-
`package_config` text,
1487-
PRIMARY KEY (`package_id`),
1488-
UNIQUE KEY `package_name` (`package_name`)
1489-
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1490-
1491-
-- --------------------------------------------------------
1492-
1493-
--
1494-
-- Table structure for table `software_repo`
1495-
--
1496-
1497-
CREATE TABLE `software_repo` (
1498-
`software_repo_id` int(11) unsigned NOT NULL auto_increment,
1499-
`sys_userid` int(11) unsigned NOT NULL default '0',
1500-
`sys_groupid` int(11) unsigned NOT NULL default '0',
1501-
`sys_perm_user` varchar(5) default NULL,
1502-
`sys_perm_group` varchar(5) default NULL,
1503-
`sys_perm_other` varchar(5) default NULL,
1504-
`repo_name` varchar(64) default NULL,
1505-
`repo_url` varchar(255) default NULL,
1506-
`repo_username` varchar(64) default NULL,
1507-
`repo_password` varchar(64) default NULL,
1508-
`active` enum('n','y') NOT NULL default 'y',
1509-
PRIMARY KEY (`software_repo_id`)
1510-
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1511-
1512-
-- --------------------------------------------------------
1513-
1514-
--
1515-
-- Table structure for table `software_update`
1516-
--
1517-
1518-
CREATE TABLE `software_update` (
1519-
`software_update_id` int(11) unsigned NOT NULL auto_increment,
1520-
`software_repo_id` int(11) unsigned NOT NULL DEFAULT '0',
1521-
`package_name` varchar(64) NOT NULL DEFAULT '',
1522-
`update_url` varchar(255) NOT NULL DEFAULT '',
1523-
`update_md5` varchar(255) NOT NULL DEFAULT '',
1524-
`update_dependencies` varchar(255) NOT NULL DEFAULT '',
1525-
`update_title` varchar(64) NOT NULL DEFAULT '',
1526-
`v1` tinyint(1) NOT NULL default '0',
1527-
`v2` tinyint(1) NOT NULL default '0',
1528-
`v3` tinyint(1) NOT NULL default '0',
1529-
`v4` tinyint(1) NOT NULL default '0',
1530-
`type` enum('full','update') NOT NULL default 'full',
1531-
PRIMARY KEY (`software_update_id`)
1532-
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1533-
1534-
-- --------------------------------------------------------
1535-
1536-
--
1537-
-- Table structure for table `software_update_inst`
1538-
--
1539-
1540-
CREATE TABLE `software_update_inst` (
1541-
`software_update_inst_id` int(11) unsigned NOT NULL auto_increment,
1542-
`software_update_id` int(11) unsigned NOT NULL default '0',
1543-
`package_name` varchar(64) NOT NULL DEFAULT '',
1544-
`server_id` int(11) unsigned NOT NULL DEFAULT '0',
1545-
`status` enum('none','installing','installed','deleting','deleted','failed') NOT NULL default 'none',
1546-
PRIMARY KEY (`software_update_inst_id`),
1547-
UNIQUE KEY `software_update_id` (`software_update_id`,`package_name`,`server_id`)
1548-
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1549-
1550-
-- --------------------------------------------------------
1551-
15521470
--
15531471
-- Table structure for table `spamfilter_policy`
15541472
--
@@ -2534,14 +2452,6 @@ INSERT INTO `help_faq_sections` VALUES (1,'General',0,NULL,NULL,NULL,NULL,NULL);
25342452

25352453
-- --------------------------------------------------------
25362454

2537-
--
2538-
-- Dumping data for table `software_repo`
2539-
--
2540-
2541-
INSERT INTO `software_repo` (`software_repo_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `repo_name`, `repo_url`, `repo_username`, `repo_password`, `active`) VALUES (1, 1, 1, 'riud', 'riud', '', 'ISPConfig Addons', 'http://repo.ispconfig.org/addons/', '', '', 'n');
2542-
2543-
-- --------------------------------------------------------
2544-
25452455
--
25462456
-- Dumping data for table `spamfilter_policy`
25472457
--

install/tpl/config.inc.php.master

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ if( !empty($_SERVER['DOCUMENT_ROOT']) ) {
3333
Header("Pragma: no-cache");
3434
Header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
3535
Header("Content-Type: text/html; charset=utf-8");
36-
36+
3737
//** Set a few php.ini values
3838
ini_set('register_globals',0);
3939
ini_set('magic_quotes_gpc', 0);
40-
40+
4141
if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS']) || isset($_REQUEST['s']) || isset($_REQUEST['s_old']) || isset($_REQUEST['conf'])) {
4242
die('Internal Error: var override attempt detected');
4343
exit;
@@ -127,8 +127,8 @@ $conf['init_scripts'] = '/etc/init.d';
127127
$conf['interface_modules_enabled'] = 'dashboard,mail,sites,dns,tools,help';
128128

129129
//** Demo mode
130-
/* The demo mode is an option to restrict certain actions in the interface like
131-
* changing the password of users with sys_userid < 3 etc. to be
130+
/* The demo mode is an option to restrict certain actions in the interface like
131+
* changing the password of users with sys_userid < 3 etc. to be
132132
* able to run the ISPConfig interface as online demo. It does not
133133
* affect the server part. The demo mode should be always set to false
134134
* on every normal installation
@@ -141,10 +141,6 @@ $conf['log_file'] = $conf['ispconfig_log_dir'].$conf['fs_div'].'ispconfig.log';
141141
$conf['log_priority'] = {ispconfig_log_priority}; // 0 = Debug, 1 = Warning, 2 = Error
142142

143143

144-
//** Allow software package installations
145-
$conf['software_updates_enabled'] = false;
146-
147-
148144
//** Themes
149145
$conf['theme'] = '{theme}';
150146
$conf['html_content_encoding'] = 'utf-8'; // example: utf-8, iso-8859-1, ...

install/tpl/security_settings.ini.master

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ admin_allow_del_cpuser=superadmin
1212
admin_allow_cpuser_group=superadmin
1313
admin_allow_firewall_config=superadmin
1414
admin_allow_osupdate=superadmin
15-
admin_allow_software_packages=superadmin
16-
admin_allow_software_repo=superadmin
1715
remote_api_allowed=yes
1816
password_reset_allowed=yes
1917
session_regenerate_id=yes
@@ -44,4 +42,3 @@ warn_new_admin=yes
4442
warn_passwd_change=no
4543
warn_shadow_change=no
4644
warn_group_change=no
47-

interface/lib/config.inc.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@
128128
$conf['log_priority'] = 0; // 0 = Debug, 1 = Warning, 2 = Error
129129

130130

131-
//** Allow software package installations
132-
$conf['software_updates_enabled'] = false;
133-
134-
135131
//** Themes
136132
$conf['theme'] = 'default';
137133
$conf['html_content_encoding'] = 'utf-8'; // example: utf-8, iso-8859-1, ...

interface/web/admin/form/software_package.tform.php

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)