Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2021-08-11 15:19:03

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,629
GitHub

Post-install setup scripts

Is there a preferred way to add 1 or more post-install setup scripts? For example, automating some admin-side options, that sort of thing.

I can run database queries manually, but since I tend to use the Textpattern auto-installer more often these days, I really like the idea of being able to drop a file into /textpattern/setup/post-install/ (or whatever) knowing they would run after the install is complete.

Thanks in advance for any advice.

Offline

#2 2021-08-11 16:37:50

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,520
Website GitHub

Re: Post-install setup scripts

Y’know what, we have a post install routine that runs on update (put script in /update/custom/post-update*.php) but I don’t think it runs via the autoinstaller. Only on UI login. I might be wrong.

If we don’t have one, we could definitely do with a dedicated post-install routine during setup – manual and automated – so this is a great reminder. We should look into this.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2021-08-11 18:08:53

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,629
GitHub

Re: Post-install setup scripts

Thanks, Bloke – appreciated!

1727

Offline

Board footer

Powered by FluxBB