Skip to content
Browse files

Cleaning up some scripts, cleaning up the README file.

- mhoye
  • Loading branch information...
1 parent c7364cf commit 20364b443c2e27e41f2e3b0112cb7a8246a8f0a4 @mhoye committed
Showing with 42 additions and 29 deletions.
  1. +22 −11 README.md
  2. +10 −13 application/config/schema-mysql/current.sql
  3. +0 −4 bin/apacheifywix.sh
  4. +10 −1 bin/setup_script.sh
View
33 README.md
@@ -96,9 +96,9 @@ Specifically, installation on a Fedora box goes as follows:
4. Install the editor of your choice, emacs, vim or nano.
-5. If you installed nano in step four, hang your head, for you have brought
- shame to your family and dishonor to your clan. Sack up and learn one
- of the other two.
+5. If you installed nano in step four, hang your head; you have brought
+ shame to your family and dishonor to your clan. Sack up, put your unix
+ boots on and learn one of the other two.
6. git clone http://github.com/mhoye/Bespoke_IO/
@@ -108,15 +108,24 @@ Specifically, installation on a Fedora box goes as follows:
a curtailed list of the available versions of Firefox and Thunderbird,
the most current mainline and extended support versions of each.
-8. Move the entire contents of the newly created Bespoke_IO folder to the
- root folder of your web server, usually /var/www/html/ - if you
- intend to pull directly from the git repo into production, make
+8. Again in the Bespoke_IO folder execute the following script:
+
+ ./bin/setup_script.sh
+
+ This will set some paths and permissions appropriately. It also
+ installs some RPMs, so if you're not using Fedora or some other
+ RPM-based distribution, you'll need to identify which packages
+ are on that list, and how to obtain and install them yourself.
+
+9. Move the entire contents of the newly created Bespoke_IO folder
+ to root folder of your web server, usually /var/www/html/ - if
+ you intend to pull directly from the git repo into production, make
sure to copy over the .git folder as well. Future releases will
have alternative branches for development and production, but at
the moment they do not so this approach is not recommended.
- You will need to configure PHP (in /etc/php.ini) to use short tags
- and set the time zone correctly.
+10. Outside of Bespoke I/O's code, you will need to configure PHP
+ (in /etc/php.ini) to use short tags and set the time zone correctly.
You will need to modify your Apache configuration (httpd.conf) to
"AllowOverride All" in the appropriate place. Be advised that the
@@ -127,7 +136,7 @@ Specifically, installation on a Fedora box goes as follows:
Again, the consequences of not knowing what you're doing here are
your responsibility.
-9. In in applications/config, copy the config-local.php-dist file
+11. In in applications/config, copy the config-local.php-dist file
to config-local.php and open it up in the editor you picked that
wasn't nano. You will need to change the line that references the
core.site_domain (line 3) to be whatever you have named the box,
@@ -136,9 +145,11 @@ Specifically, installation on a Fedora box goes as follows:
TRUE, you also need to configure the email.options section
correctly.
-10. Finally, in the root folder of your web server, in a terminal, do this:
+12. Finally, in the root folder of your web server, in a terminal, do this:
+
+ php index.php util/createlogin admin person@companyname.com admin
- php index.php util/createlogin admin person@company.com admin
+ ... replacing person@companyname.com with your own address.
This will create an "admin" user on the web service, with the
appropriate permissions, and give you that account's password. You
View
23 application/config/schema-mysql/current.sql
@@ -175,15 +175,10 @@ LOCK TABLES `products` WRITE;
INSERT INTO `products` VALUES
-(25, 'Firefox', '4.0', '4.0', 3, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2011-03-22 10:00:00', NULL),
-(26, 'Firefox', '5.0.1', '5.0.1', 1, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu',0, '2011-07-18 11:00:00', NULL ),
-(30, 'Firefox', '6.0.2', '6.0.2', 1, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2011-08-17 00:00:00', NULL),
-(31, 'Firefox', '7.0.1', '7.0.1', 3, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2011-03-22 10:00:00', NULL),
-(32, 'Firefox', '8.0.1', '8.0.1', 3, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2011-03-22 10:00:00', NULL),
-(33, 'Firefox', '9.0.1', '9.0.1', 3, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2011-03-22 10:00:00', NULL),
-(34, 'Firefox', '10.0.3', '10.0.3', 3, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2012-02-01 10:00:00', NULL),
-(35, 'Firefox', '10.0.3esr', '10.0.3esr', 1, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2012-03-01 10:00:00', NULL),
-(36, 'Firefox', '11.0', '11.0', 1, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2012-03-01 10:00:00', NULL);
+(1, 'Firefox', '4.0.1', '4.0.1', 1, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2011-03-22 10:00:00', NULL),
+(2, 'Firefox', '10.0.7esr', '10.0.7esr', 1, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2012-03-01 10:00:00', NULL),
+(3, 'Firefox', '15.0', '15.0', 1, 'af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta-LK ta te th tr uk vi zh-CN zh-TW zu', 0, '2012-03-01 10:00:00', NULL);
+
/*!40000 ALTER TABLE `products` ENABLE KEYS */;
UNLOCK TABLES;
@@ -309,13 +304,15 @@ CREATE TABLE `thunderbird_products` (
SET character_set_client = @saved_cs_client;
LOCK TABLES `thunderbird_products` WRITE;
-INSERT INTO `thunderbird_products` VALUES (1, 'Thunderbird', '10.0.3', '10.0.3', 1, 'ar be bn-BD br ca cs da de el en-GB en-US es-AR es-ES et eu fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pl pt-BR pt-PT rm ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW', 0, '2012-02-01 00:00:00', '2012-02-01 00:00:00'),
-(2, 'Thunderbird', '10.0.3esr', '10.0.3esr', 1, 'ar be bn-BD br ca cs da de el en-GB en-US es-AR es-ES et eu fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pl pt-BR pt-PT rm ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW', 0, '2012-02-01 00:00:00', '2012-02-01 00:00:00'),
-(3, 'Thunderbird', '11.0', '11.0', 1, 'ar be bn-BD br ca cs da de el en-GB en-US es-AR es-ES et eu fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pl pt-BR pt-PT rm ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW', 0, '2012-02-01 00:00:00', '2012-02-01 00:00:00');
+INSERT INTO `thunderbird_products` VALUES
-UNLOCK TABLES;
+(1, 'Thunderbird', '10.0.1', '10.0.1', 1, 'ar be bn-BD br ca cs da de el en-GB en-US es-AR es-ES et eu fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pl pt-BR pt-PT rm ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW', 0, '2012-02-01 00:00:00', '2012-02-01 00:00:00'),
+(2, 'Thunderbird', '10.0.7esr', '10.0.7esr', 1, 'ar be bn-BD br ca cs da de el en-GB en-US es-AR es-ES et eu fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pl pt-BR pt-PT rm ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW', 0, '2012-02-01 00:00:00', '2012-02-01 00:00:00'),
+(3, 'Thunderbird', '15.0', '15.0', 1, 'ar be bn-BD br ca cs da de el en-GB en-US es-AR es-ES et eu fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pl pt-BR pt-PT rm ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW', 0, '2012-02-01 00:00:00', '2012-02-01 00:00:00');
+UNLOCK TABLES;
+
--
-- Table structure for table `thunderbird_repacks`
--
View
4 bin/apacheifywix.sh
@@ -1,4 +0,0 @@
-#!/bin/bash
-mkdir /.wixwine
-chgrp apache /.wixwine
-chown apache /.wixwine
View
11 bin/setup_script.sh
@@ -1,11 +1,20 @@
#!/bin/sh
-echo 'Making workspace and logging directories, setting permissions...'
+echo 'Doing some housekeeping, setting up some directories installing some RPMs.'
+echo 'Control-C to abort, any other key to continue.'
+
+read
mkdir repack_assets && chmod 775 repack_assets
mkdir application/cache && chmod 775 application/cache
mkdir application/logs && chmod 775 application/logs
+rpm -i bin/wixPackages/*.rpm
+
+mkdir /.wixwine
+chgrp apache /.wixwine
+chown apache /.wixwine
+
mv htaccess-dist .htaccess

0 comments on commit 20364b4

Please sign in to comment.
Something went wrong with that request. Please try again.